Guile bindings.
using main_function_type = void(*)(int, char **)struct vtb::guile::c_deleterassets_define() -> voidcompartment_to_string(SCM object) -> SCMconvert_asset(SCM s_asset, SCM rest) -> SCMasset using options. Options are specified as rest argument. Output format is specified as output-format option.
default_policy() -> SCMtemplate <class Pointer> define_procedure(const char * name, const char * documentation, Pointer ptr) -> voidtemplate <int Req, class Pointer> define_procedure(const char * name, std::array< const char *, Req > req, const char * documentation, Pointer ptr) -> voidtemplate <int Req, int Opt, class Pointer> define_procedure(const char * name, std::array< const char *, Req > req, std::array< const char *, Opt > opt, const char * documentation, Pointer ptr) -> voidtemplate <int Req, int Opt, int Rest, class Pointer> define_procedure(const char * name, std::array< const char *, Req > req, std::array< const char *, Opt > opt, std::array< const char *, Rest > rest, const char * documentation, Pointer ptr) -> voidexport_asset(SCM s_asset, SCM rest) -> SCMasset to file using options. Options are specified as rest argument. File path is specified as output-path option.
export_polyhedron(SCM polyhedron, SCM path, SCM rest) -> SCMpolyhedron to the file specified by path using options.
from_scm< bool >(SCM x) -> boolfrom_scm< double >(SCM x) -> doublefrom_scm< float >(SCM x) -> floatfrom_scm< int >(SCM x) -> intgenerate_compartments(SCM hull, SCM nrooms) -> SCMhull using 3-d grid of size nrooms.
get_testbed() -> SCMget_wrapper(SCM object) -> Wrapper< std::any > *grid_define() -> voidgrid_dimensions(SCM x) -> intgrid_max(SCM object) -> SCMgrid_min(SCM object) -> SCMgrid_select(SCM object, SCM indices) -> SCMgrid_to_string(SCM object) -> SCMimport_asset(SCM rest) -> SCMoptions. Options are specified as rest argument. File path is specified as input-path option.
import_compartments(SCM path, SCM rest) -> SCMpath using options.
import_hull(SCM path, SCM rest) -> SCMpath using options.
import_polyhedron(SCM path, SCM rest) -> SCMpath using options.
is_bound(SCM s) -> boolis_grid(SCM object) -> boolis_list(SCM s) -> boolis_string(SCM s) -> boolis_symbol(SCM s) -> boollength(SCM s) -> intmain(int argc, char * argv, main_function_type main) -> voidmake_anlt_wind_solver(SCM rest) -> SCMmake_calm_sea_generator() -> SCMmake_compartment(SCM polyhedron, SCM rest) -> SCMpolyhedron and optional name.
make_gerstner_solver(SCM rest) -> SCMmake_grid(SCM rest) -> SCMmake_object(SCM type, const std::any & any) -> SCMmake_object(SCM type, std::any && any) -> SCMmake_opencl_context(SCM rest) -> SCMmake_plane_wave_generator(SCM rest) -> SCMmake_ship(SCM rest) -> SCMhull, compartments and mass/displacement/draught.
make_testbed(SCM rest) -> SCMmake_wave(SCM type, SCM rest) -> SCMmake_wrapper(const std::any & any) -> Wrapper< std::any > *make_wrapper(std::any && any) -> Wrapper< std::any > *misc_define() -> voidopencl_platforms() -> SCMpolicy_define() -> voidpolicy_from_scm(SCM rhs) -> vtb::core::Policypolyhedron_bounding_box(SCM object) -> SCMpolyhedron_bounds(SCM object, SCM dimension) -> SCMpolyhedron_centroid(SCM object) -> SCMpolyhedron_empty(SCM object) -> SCMpolyhedron_flip(SCM object, SCM arg) -> SCMpolyhedron_flip_self(SCM object, SCM arg) -> SCMpolyhedron_mirror(SCM object, SCM arg) -> SCMpolyhedron_mirror_self(SCM object, SCM arg) -> SCMpolyhedron_move(SCM object, SCM arg) -> SCMpolyhedron_move_self(SCM object, SCM arg) -> SCMpolyhedron_normalise(SCM object) -> SCMpolyhedron_normalise_self(SCM object) -> SCMpolyhedron_reorder(SCM object) -> SCMpolyhedron_reorder_self(SCM object) -> SCMpolyhedron_rotate(SCM object, SCM arg1, SCM arg2) -> SCMpolyhedron_rotate_self(SCM object, SCM arg1, SCM arg2) -> SCMpolyhedron_scale(SCM object, SCM arg) -> SCMpolyhedron_scale_self(SCM object, SCM arg) -> SCMpolyhedron_signed_volume(SCM object) -> SCMpolyhedron_signed_volume_below(SCM object, SCM dimension, SCM level) -> SCMlevel of dimension.
polyhedron_unique(SCM object) -> SCMpolyhedron_unique_self(SCM object) -> SCMpolyhedron_volume(SCM object) -> SCMquaternion_define() -> voidset_testbed(SCM other) -> SCMother.
ship_compartment_flood(SCM object, SCM name, SCM volume) -> SCMship_compartments(SCM object) -> SCMship_mass(SCM object) -> SCMship_quaternion(SCM object) -> SCMship_quaternion_set(SCM object, SCM q) -> SCMstatistics_columns(SCM object) -> SCMstatistics_current_row(SCM object) -> SCMsupported_asset_options() -> SCMsupported_policies() -> SCMsymbol_equal(SCM a, SCM b) -> booltestbed_grid(SCM object) -> SCMtestbed_gui_pause() -> SCMtestbed_gui_start() -> SCMtestbed_gui_start_recording() -> SCMtestbed_gui_stop() -> SCMtestbed_gui_stop_recording() -> SCMtestbed_policy(SCM object, SCM s_policy) -> SCMtestbed_reset(SCM object) -> SCMtestbed_statistics(SCM object) -> SCMtestbed_step(SCM object, SCM dt) -> SCMdt.
testbed_time_instant(SCM object) -> SCMthrow_error(const char * message) -> voidto_c_string(SCM s) -> c_string< char >to_scm(vtb::core::Policy rhs) -> SCMto_scm(const std::string & x) -> SCMto_scm(const char * x) -> SCMto_scm(double x) -> SCMto_scm(float x) -> SCMto_scm(uint64_t x) -> SCMto_scm(int64_t x) -> SCMto_scm(uint32_t x) -> SCMto_scm(int32_t x) -> SCMto_scm(bool x) -> SCMto_string(SCM s) -> std::stringvtestbed_gc() -> SCMwave_define() -> void