Skip to main content

Module spline_editor

Module spline_editor 

Source

Structs§

AccelerationProfile
AnimatedSpline
AnimatedSplineKeyframe
BSpline
BSplineFitter
BakedFrenetFrames
A pre-baked sequence of Frenet frames at uniform arc-length intervals.
BakedSplineAnimation
BezierFitter
CameraRail
Catenary
CatmullRomSpline
ChainLink
CircularArc
ControlPoint
CrossSection
CubicBezierSpline
CurvatureComb
Compute a curvature comb: for each sample point, a line from the point in the normal direction scaled by curvature * scale.
DebugLine
DebugPoint
ElevationProfile
ExtrudedProfile
FenceGeometry
FenceProfile
FrenetFrame
HermiteSpline
IntersectionPoint
LoftedSurface
NurbsSpline
ParallelTransportFrame
PathNetwork
RailMeshData
RailTrack
RibbonMesh
A flat ribbon along the spline with configurable width taper.
RoadMarking
RoadProfile
RoadSegment
SegmentAnnotation
SelectionState
Sleeper
SpeedCurve
SpeedKey
SpeedProfile
SplineAnalysisReport
SplineAnnotator
SplineAttachment
SplineBundle
SplineCage
SplineChain
SplineColorKey
SplineColorRamp
SplineConstrainedObject
SplineDebugViz
SplineDeformHistory
SplineDeformer
SplineDynamics
SplineEdge
SplineEditor
SplineEditorStats
SplineEditorUIState
SplineEvent
SplineEventTrack
SplineFrameExport
SplineGradient
SplineGrowthParams
SplineIKChain
SplineIntersectionGraph
SplineLattice
SplineLodLevel
SplineLodManager
SplineMesh
SplineMetadata
Arbitrary key-value metadata attached to a spline.
SplineMorphTarget
SplineNode
SplinePaintTool
Convert a sequence of raw stroke samples (mouse / pen) to a smoothed CatmullRom spline.
SplineParticle
SplinePlaneIntersection
SplinePreviewData
A compact view of a spline for UI display: discretised polyline + tangent arrows.
SplineSerializedData
SplineSignal
SplineSignalTrack
SplineSplineIntersection
SplineStatistics
SplineVolume
SplineWarpDeformer
SplineWaypointTracker
A runtime tracker that advances a “current t” parameter along a spline at a given world-space speed, firing waypoint events.
TrafficAgent
TrafficLight
TrafficSystem
UndoHistory

Enums§

RoadMarkingKind
SelectionTarget
SplineEditMode
SplineEditorCommand
SplineTool
SplineType
TangentHandle
TrafficLightPhase

Functions§

apply_morph_targets
apply_wind
average_along_spline
Average of a scalar field over arc-length.
bezier_tight_bounding_box
biarc_fit
Approximate a G1 segment with two circular arcs (biarc).
build_parallel_transport_frames
build_tube_mesh
Tube mesh: a circle cross-section swept along a spline
camera_path_evaluate
Evaluate a camera’s world-space position and look-at target along a camera rail.
catmull_clark_subdivide_1d
Catmull-Clark subdivision of a 3D polyline (single iteration)
catmull_jerk
Approximate jerk (3rd derivative) via finite differences of second derivative.
catmull_rom_compare_parameterizations
catmull_second_derivative
Compute the second derivative of a Catmull-Rom segment via finite differences of tangents.
chord_deviation
Compute the deviation of each control point from the chord (first to last).
clothoid_transition
Insert a clothoid transition between two tangent directions.
collide_with_plane_y
collide_with_sphere
compute_evolute
Evolute of a curve: locus of centers of osculating circles
compute_involute
Involute of a spline: unrolling a string from the curve
compute_writhe
Compute the writhe of a closed curve (Gauss integral)
curvature_flow_step
douglas_peucker
Douglas-Peucker polyline simplification
equidistribute_catmull
Redistribute control points to be uniformly spaced along the arc.
estimate_alpha
Estimate a good alpha for centripetal Catmull-Rom given control points. Returns the mean chord-length ratio exponent that minimises parameterisation error.
example_build_roller_coaster
example_camera_path
export_spline_frames
fit_cubic_bezier
Fit a single cubic Bezier to a set of ordered sample points using chord-length parameterization and the Moore-Penrose pseudoinverse. Returns [P0, P1, P2, P3].
fit_piecewise_cubic_bezier
Fit a piecewise cubic Bezier (G1 continuous) to points.
generate_helix
generate_toroidal_helix
ground_spline_to_terrain
integrate_along_spline
Integrate a scalar field f(t) weighted by arc-length ds/dt.
intersect_spline_plane
intersect_spline_spline
knot_vector_clamped
knot_vector_periodic
knot_vector_uniform
laplacian_smooth_catmull
Laplacian smoothing: move each interior control point toward the average of its two neighbours by factor lambda.
max_chord_deviation
Maximum absolute chord deviation.
mirror_spline_x
mirror_spline_y
mirror_spline_z
offset_spline
offset_spline_xz
Offset a CatmullRom spline in the XZ plane by distance (positive = left).
osculating_circle
Compute the osculating circle at a point: returns (center, radius)
perturb_spline_fbm
point_to_spline_distance
Distance from an external point to the nearest point on a spline.
polyline_signed_curvature_2d
Compute signed curvature of a 2D polyline
reparametrise_by_curvature
Reparameterise spline samples so high-curvature regions get more samples.
resample_polyline
Reparameterize a polyline by arc length to produce evenly spaced points
rotate_spline
run_curvature_flow
sample_adaptive_curvature
sample_arc_length_uniform
Sample evenly in arc length
sample_by_world_step
sample_chord_length
Sample using chord-length parameterization
sample_clothoid
Sample a Clothoid (Euler spiral) with scale a, returning XZ positions.
sample_uniform_arc_length
scale_spline
scale_spline_uniform
sdf_spline_capsule
segment_segment_dist_sq
Fast segment-segment distance (3-D); returns squared minimum distance.
signed_curvature_xz
Signed curvature in the XZ plane: positive = left turn.
simplify_polyline
smooth_polyline
Smooth a polyline with a Gaussian kernel
snap_to_grid
snap_to_grid_xz
spline_from_csv
spline_heading_yaw
Return the heading angle (yaw) in radians of the spline tangent at t.
spline_outline_xz
Generate a 2-D outline (two parallel polylines) from a spline in the XZ plane.
spline_spline_intersection_params
Find approximate intersection parameter pairs between two CatmullRom splines.
spline_spline_min_distance
Closest pair of points between two splines.
spline_to_csv
spline_total_variation
Compute the total variation (sum of |dp_i| changes) of a spline.
subdivide_catmull
Insert n new control points via uniform T subdivision.
surface_of_revolution
taubin_smooth_catmull
Taubin smoothing: two-pass (lambda / -mu) to avoid shrinkage.
test_create_figure_eight
test_create_sine_wave
test_create_spiral
total_absolute_curvature
Total absolute curvature (integral of |κ| ds)
total_torsion
translate_spline
turning_number
Turning number of a closed planar curve
winding_number_xz
Compute approximate winding number of a closed spline around a query point in XZ.
xz_line_perpendicular_distance
Signed perpendicular distance from point to the line through a and b in XZ.