Guile bindings.
using main_function_type = void(*)(int, char **)
struct vtb::guile::c_deleter
assets_define() -> void
compartment_to_string(SCM object) -> SCM
convert_asset(SCM s_asset, SCM rest) -> SCM
asset
using options
. Options are specified as rest
argument. Output format is specified as output-format option.
default_policy() -> SCM
template <class Pointer>
define_procedure(const char * name, const char * documentation, Pointer ptr) -> void
template <int Req, class Pointer>
define_procedure(const char * name, std::array< const char *, Req > req, const char * documentation, Pointer ptr) -> void
template <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) -> void
template <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) -> void
export_asset(SCM s_asset, SCM rest) -> SCM
asset
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) -> SCM
polyhedron
to the file specified by path
using options
.
from_scm< bool >(SCM x) -> bool
from_scm< double >(SCM x) -> double
from_scm< float >(SCM x) -> float
from_scm< int >(SCM x) -> int
generate_compartments(SCM hull, SCM nrooms) -> SCM
hull
using 3-d grid of size nrooms
.
get_testbed() -> SCM
get_wrapper(SCM object) -> Wrapper< std::any > *
grid_define() -> void
grid_dimensions(SCM x) -> int
grid_max(SCM object) -> SCM
grid_min(SCM object) -> SCM
grid_select(SCM object, SCM indices) -> SCM
grid_to_string(SCM object) -> SCM
import_asset(SCM rest) -> SCM
options
. Options are specified as rest
argument. File path is specified as input-path option.
import_compartments(SCM path, SCM rest) -> SCM
path
using options
.
import_hull(SCM path, SCM rest) -> SCM
path
using options
.
import_polyhedron(SCM path, SCM rest) -> SCM
path
using options
.
is_bound(SCM s) -> bool
is_grid(SCM object) -> bool
is_list(SCM s) -> bool
is_string(SCM s) -> bool
is_symbol(SCM s) -> bool
length(SCM s) -> int
main(int argc, char * argv, main_function_type main) -> void
make_anlt_wind_solver(SCM rest) -> SCM
make_calm_sea_generator() -> SCM
make_compartment(SCM polyhedron, SCM rest) -> SCM
polyhedron
and optional name.
make_gerstner_solver(SCM rest) -> SCM
make_grid(SCM rest) -> SCM
make_object(SCM type, const std::any & any) -> SCM
make_object(SCM type, std::any && any) -> SCM
make_opencl_context(SCM rest) -> SCM
make_plane_wave_generator(SCM rest) -> SCM
make_ship(SCM rest) -> SCM
hull
, compartments
and mass/displacement/draught.
make_testbed(SCM rest) -> SCM
make_wave(SCM type, SCM rest) -> SCM
make_wrapper(const std::any & any) -> Wrapper< std::any > *
make_wrapper(std::any && any) -> Wrapper< std::any > *
misc_define() -> void
opencl_platforms() -> SCM
policy_define() -> void
policy_from_scm(SCM rhs) -> vtb::core::Policy
polyhedron_bounding_box(SCM object) -> SCM
polyhedron_bounds(SCM object, SCM dimension) -> SCM
polyhedron_centroid(SCM object) -> SCM
polyhedron_empty(SCM object) -> SCM
polyhedron_flip(SCM object, SCM arg) -> SCM
polyhedron_flip_self(SCM object, SCM arg) -> SCM
polyhedron_mirror(SCM object, SCM arg) -> SCM
polyhedron_mirror_self(SCM object, SCM arg) -> SCM
polyhedron_move(SCM object, SCM arg) -> SCM
polyhedron_move_self(SCM object, SCM arg) -> SCM
polyhedron_normalise(SCM object) -> SCM
polyhedron_normalise_self(SCM object) -> SCM
polyhedron_reorder(SCM object) -> SCM
polyhedron_reorder_self(SCM object) -> SCM
polyhedron_rotate(SCM object, SCM arg1, SCM arg2) -> SCM
polyhedron_rotate_self(SCM object, SCM arg1, SCM arg2) -> SCM
polyhedron_scale(SCM object, SCM arg) -> SCM
polyhedron_scale_self(SCM object, SCM arg) -> SCM
polyhedron_signed_volume(SCM object) -> SCM
polyhedron_signed_volume_below(SCM object, SCM dimension, SCM level) -> SCM
level
of dimension.
polyhedron_unique(SCM object) -> SCM
polyhedron_unique_self(SCM object) -> SCM
polyhedron_volume(SCM object) -> SCM
quaternion_define() -> void
set_testbed(SCM other) -> SCM
other
.
ship_compartment_flood(SCM object, SCM name, SCM volume) -> SCM
ship_compartments(SCM object) -> SCM
ship_mass(SCM object) -> SCM
ship_quaternion(SCM object) -> SCM
ship_quaternion_set(SCM object, SCM q) -> SCM
statistics_columns(SCM object) -> SCM
statistics_current_row(SCM object) -> SCM
supported_asset_options() -> SCM
supported_policies() -> SCM
symbol_equal(SCM a, SCM b) -> bool
testbed_grid(SCM object) -> SCM
testbed_gui_pause() -> SCM
testbed_gui_start() -> SCM
testbed_gui_start_recording() -> SCM
testbed_gui_stop() -> SCM
testbed_gui_stop_recording() -> SCM
testbed_policy(SCM object, SCM s_policy) -> SCM
testbed_reset(SCM object) -> SCM
testbed_statistics(SCM object) -> SCM
testbed_step(SCM object, SCM dt) -> SCM
dt
.
testbed_time_instant(SCM object) -> SCM
throw_error(const char * message) -> void
to_c_string(SCM s) -> c_string< char >
to_scm(vtb::core::Policy rhs) -> SCM
to_scm(const std::string & x) -> SCM
to_scm(const char * x) -> SCM
to_scm(double x) -> SCM
to_scm(float x) -> SCM
to_scm(uint64_t x) -> SCM
to_scm(int64_t x) -> SCM
to_scm(uint32_t x) -> SCM
to_scm(int32_t x) -> SCM
to_scm(bool x) -> SCM
to_string(SCM s) -> std::string
vtestbed_gc() -> SCM
wave_define() -> void