generic_arc3D | |
---|---|
arc2D::§Function z0::§Coords3D zStart::§Coords3D zEnd::§Coords3D r::§Length → §Path | |
Dynamic references: | none |
The argument arc2D should be a function accepting the same arguments as, for instance, ..Shapes..Geometry..ccw_arc.
This function computes the transform that maps the plane spanned by z0, zStart, and zEnd, to a plane through the origin, normal to the z direction. Using this transform in combination with view, the task of constructing arcs is moved from 3d to 2d, where the arc is constructed using arc2D, and then the result is immersed and mapped back the the right position in 3d.
The orientation of the intermediate 2d representation is chosen to ensure that rotation about z0 from the direction to zStart to zEnd becomes counter-clockwise in 2d.
The cuts of this function obtained by using ..Shapes..Geometry..ccw_arc or ..Shapes..Geometry..cw_arc are bound to separate variables.
| |
See also: | ccw_arc3D cw_arc3D |