align_evaluate
Sample an alignment (node uuid) at station station_m (metres). Writes any non-null out (position, bearing degrees, curvature 1/R). Returns 1 on success, 0 if the node isn't an alignment or the station is out of range.
Prototype
int (*align_evaluate)(Yu3dDocument* doc, const char* alignment_uuid, double station_m, double* out_x, double* out_y, double* out_bearing_deg, double* out_curvature)
Parameters
| Declaration | Name |
|---|---|
Yu3dDocument* doc | doc |
const char* alignment_uuid | alignment_uuid |
double station_m | station_m |
double* out_x | out_x |
double* out_y | out_y |
double* out_bearing_deg | out_bearing_deg |
double* out_curvature | out_curvature |
Returns
int
Same group (Document mutation)
doc_add_node · doc_add_node_under · doc_ensure_group · doc_rename_node · doc_remove_node · doc_set_property · plan_add_triangle · plan_real_width · scene_set_pick_id · register_subentity_property · register_plan_grips · doc_is_metric · doc_crs_definition · doc_design_standard · doc_design_speed_kmh · doc_ground_elevation · align_station_range · register_property_ex · advertise_module · set_module_active · is_module_active · reader_version · run_command · align_create · align_set_geometry · align_set_profile · align_create_offset · surface_create · assembly_create_preset · corridor_create · corridor_bind_assembly · doc_save · doc_save_exchange · doc_load_exchange · align_kind · align_category · align_h_element_count · align_h_element · align_v_pvi_count · align_v_pvi · align_elevation_at · align_bond · surface_point_count · surface_get_points · surface_triangle_count · surface_get_triangles · surface_add_breakline · surface_breakline_count · surface_get_breakline · corridor_baseline_count · corridor_region_count · corridor_region_assembly
Declared in sdk/include/yu3d_plugin.h. Reached through the host table: host->align_evaluate(…). Guard with YU3D_HOST_HAS(host, align_evaluate) if your plugin must also load in an older host.