core.primitives¶
The atoms of the system. Every part of UTDE operates on these types.
toolpath_engine.core.primitives.Vector3
dataclass
¶
A 3D vector / point.
Source code in utde_v0.1.0/toolpath_engine/core/primitives.py
angle_to(other)
¶
toolpath_engine.core.primitives.Position
dataclass
¶
A named 3D point in a specified coordinate frame.
Source code in utde_v0.1.0/toolpath_engine/core/primitives.py
toolpath_engine.core.primitives.Orientation
dataclass
¶
Tool axis direction, typically a unit vector (i, j, k). Convention: the vector points from tool tip toward the spindle.
Source code in utde_v0.1.0/toolpath_engine/core/primitives.py
angle_to(other)
¶
toolpath_engine.core.primitives.Frame
dataclass
¶
A named coordinate system defined by an origin and three orthogonal axes. Used for workpiece, fixture, feature-local, and machine coordinate systems.
Source code in utde_v0.1.0/toolpath_engine/core/primitives.py
from_origin_and_z(name, origin, z_axis, x_hint=(1, 0, 0))
classmethod
¶
Build a frame from an origin and Z direction, with an X hint.
Source code in utde_v0.1.0/toolpath_engine/core/primitives.py
inverse_matrix()
¶
to_matrix()
¶
4x4 homogeneous transformation matrix (frame → world).
Source code in utde_v0.1.0/toolpath_engine/core/primitives.py
transform_direction(direction)
¶
Transform a direction vector from this frame to world.
Source code in utde_v0.1.0/toolpath_engine/core/primitives.py
transform_point(point)
¶
Transform a point from this frame to world coordinates.
Source code in utde_v0.1.0/toolpath_engine/core/primitives.py
toolpath_engine.core.primitives.Variable
dataclass
¶
A named value usable in process logic.