jsl/geometry/NotchedShapes¶
Package name: jsl/geometry/NotchedShapes
Summary¶
General Definitions¶
Function | Description |
---|---|
NotchedRectangle | Construct a Rectangle with a notch of defined shape on the long side. |
DoubleNotchedRectangle | Construct a Double Notched Rectangle. |
DoubleChippedCircle | Construct a double chipped circle shape. |
ChippedCircle | Construct a chipped circle shape. |
Definitions¶
General Definitions¶
NotchedRectangle¶
Construct a Rectangle with a notch of defined shape on the long side.
public defn NotchedRectangle ( -- width:Double, height:Double, notch-width:Double, notch-height:Double, anchor:Anchor = ?) -> Shape
width: Double
- Rectangle Width (X) in mm.height: Double
- Rectangle Height (Y) in mm.notch-width: Double
- Base of the triangle that will be notched from the width of the rectangle. This value must be less than or equal to the width of the triangle.notch-height: Double
- Height of the triangle that will be notched. This value must be strictly less than the height to prevent a non-simple polygon or a self-intersection.anchor: Anchor
- Origin of the resulting shape. The default isC
or centered at the origin.- Returns
Shape
This function will construct a rectangle with a triangle shaped notched cut on the long edge in the +Y half of the plane.
DoubleNotchedRectangle¶
Construct a Double Notched Rectangle.
public defn DoubleNotchedRectangle ( -- width:Double, height:Double, notch-width:Double, notch-height:Double, anchor:Anchor = ?) -> Shape
width: Double
- Rectangle Width (X) in mm.height: Double
- Rectangle Height (Y) in mm.notch-width: Double
- Base of the triangle that will be notched from the width of the rectangle. This value must be less than or equal to the width of the triangle.notch-height: Double
- Height of the triangle that will be notched. This value must be strictly less than the height to prevent a non-simple polygon or a self-intersection.anchor: Anchor
- Origin of the resulting shape. The default isC
or centered at the origin.- Returns
Shape
This function is similar to the NotchedRectangle
but adds
an additional notch in the -Y half plane as well.
DoubleChippedCircle¶
Construct a double chipped circle shape.
public defn DoubleChippedCircle ( -- radius:Double, edge-dist:Double, anchor:Anchor = ?) -> Shape
radius: Double
- Radial dimension of the originating circle in mm.edge-dist: Double
- Distance from the center of the circle to the chord in the radial direction in mm.anchor: Anchor
- Where the origin of this resulting shape will be. By default this value isC
indicating the origin is the center of the circle.- Returns
Shape
A chipped circle is a circle with a chord drawn across one side and the circular segment removed from the circle. The remaining circle has one straight edge and contains the origin.
A double chipped circle has this circular segment clipped off two edges. The current implementation construct a circle that has two straight edges aligned with the X axis and in the +Y and -Y halves of the plane.
ChippedCircle¶
Construct a chipped circle shape.
public defn ChippedCircle ( -- radius:Double, edge-dist:Double, anchor:Anchor = ?) -> Shape
radius: Double
- Radial dimension of the originating circle in mm.edge-dist: Double
- Distance from the center of the circle to the chord in the radial direction in mm.anchor: Anchor
- Where the origin of this resulting shape will be. By default this value isC
indicating the origin is the center of the circle.- Returns
Shape
A chipped circle is a circle with a chord drawn across one side and the circular segment removed from the circle. The remaining circle has one straight edge and contains the origin.
The current implementation construct a circle that has this straight edge aligned with the X axis and in the +Y half of the plane.