Skip to main content

Module front

Module front 

Source

Structs§

Arc
ArcCtor
Circle
CircleCtor
Coincident
CoincidentData
Coincident data for split segment operations
ConstraintToMigrate
Constraint to migrate during split operations
Coords2d
2D coordinates in the trim internal unit (current/default length unit).
Distance
Error
ExistingSegmentCtor
Face
File
FileId
FrontendState
Horizontal
Line
LineCtor
LinesEqualLength
NewSegmentInfo
Information about a newly created segment for batch operations
Number
Object
ObjectId
Parallel
Perpendicular
Point
Point2d
PointCtor
ProjectId
SceneGraph
SceneGraphDelta
Settings
The executor settings.
Sketch
SketchCtor
Arguments for creating a new sketch. This is similar to the constructor of other kinds of objects in that it is the inputs to the sketch, not the outputs.
SourceDelta
TangentArcCtor
TrimTerminations
Trim terminations for both sides
Version
Vertical

Enums§

ArcPoint
Which point of an arc segment to get coordinates for
AttachToEndpoint
Specifies where a constraint should attach when migrating during split operations
Constraint
EndpointChanged
Specifies which endpoint of a segment was changed
Expr
Freedom
LineEndpoint
Which endpoint of a line segment to get coordinates for
ObjectKind
Plane
Segment
SegmentCtor
SetProgramOutcome
SourceRef
StartOrEnd
TrimDirection
Direction along a segment for finding trim terminations
TrimItem
Item from advancing to the next trim spawn (intersection), like an iterator item from Iterator::next().
TrimOperation
TrimTermination
Trim termination types

Traits§

LifecycleApi
SketchApi

Functions§

arc_arc_intersection
Helper to calculate intersection between two arcs (via circle-circle intersection)
execute_trim_loop_with_context
Execute the trim loop with a context struct that provides access to FrontendState. This is a convenience wrapper that inlines the loop to avoid borrow checker issues with closures. The core loop logic is duplicated here, but this allows direct access to frontend and ctx.
get_next_trim_spawn
Find the next trim spawn (intersection) between trim line and scene segments
get_position_coords_for_line
Helper to get point coordinates from a Line segment by looking up the point object (native types)
get_position_coords_from_arc
Helper to get point coordinates from an Arc segment by looking up the point object (native types)
get_trim_spawn_terminations
For the trim spawn segment and the intersection point on that segment, finds the “trim terminations” in both directions (left and right from the intersection point). A trim termination is the point where trimming should stop in each direction.
is_point_on_arc
Helper to check if a point is on an arc segment (CCW from start to end)
is_point_on_line_segment
Helper to check if a point is on a line segment (within epsilon distance)
line_arc_intersection
Helper to calculate intersection between a line segment and an arc
line_segment_intersection
Helper to calculate intersection point of two line segments
perpendicular_distance_to_segment
Helper to calculate the perpendicular distance from a point to a line segment
project_point_onto_arc
Helper to calculate the parametric position of a point on an arc Returns t where t=0 at start, t=1 at end, based on CCW angle
project_point_onto_segment
Helper to calculate the parametric position of a point on a line segment

Type Aliases§

Result