Structs§
- Arc
- ArcCtor
- Circle
- Circle
Ctor - Coincident
- Coincident
Data - Coincident data for split segment operations
- Constraint
ToMigrate - Constraint to migrate during split operations
- Coords2d
- 2D coordinates in the trim internal unit (current/default length unit).
- Distance
- Error
- Existing
Segment Ctor - Face
- File
- FileId
- Frontend
State - Horizontal
- Line
- Line
Ctor - Lines
Equal Length - NewSegment
Info - Information about a newly created segment for batch operations
- Number
- Object
- Object
Id - Parallel
- Perpendicular
- Point
- Point2d
- Point
Ctor - Project
Id - Scene
Graph - Scene
Graph Delta - Settings
- The executor settings.
- Sketch
- Sketch
Ctor - 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.
- Source
Delta - Tangent
ArcCtor - Trim
Terminations - Trim terminations for both sides
- Version
- Vertical
Enums§
- ArcPoint
- Which point of an arc segment to get coordinates for
- Attach
ToEndpoint - Specifies where a constraint should attach when migrating during split operations
- Constraint
- Endpoint
Changed - Specifies which endpoint of a segment was changed
- Expr
- Freedom
- Line
Endpoint - Which endpoint of a line segment to get coordinates for
- Object
Kind - Plane
- Segment
- Segment
Ctor - SetProgram
Outcome - Source
Ref - Start
OrEnd - Trim
Direction - Direction along a segment for finding trim terminations
- Trim
Item - Item from advancing to the next trim spawn (intersection), like an iterator item from
Iterator::next(). - Trim
Operation - Trim
Termination - Trim termination types
Traits§
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