CadMarkerStroke
from OpenCAD2D import CadMarkerStroke
class CadMarkerStroke(System.Object) ยท CadMarkerStroke in the .NET reference
A stroke of a snap marker: a chain of points in pixels about the snap point, X to the right and Y down as the screen has them, drawn open or closed, solid or dotted, or filled.
Constructors
__init__
def __init__(
self,
points: System.Collections.Generic.IReadOnlyList[GeoPoint2],
closed: bool,
dotted: bool = ...,
filled: bool = ...,
) -> None
Makes a stroke, as a plugin draws the glyph of its object snap with (CadCustomSnap.Glyph): a triangle pointing up, 9 across, is (-4.5, 4.5) (4.5, 4.5) (0, -4.5) closed.
Properties and fields
IsClosed
@property
def IsClosed(self) -> bool
Gets whether the chain closes back to its first point.
IsDotted
@property
def IsDotted(self) -> bool
Gets whether the stroke is drawn dotted, as the line of an extension.
IsFilled
@property
def IsFilled(self) -> bool
Gets whether the stroke is filled, as the dot of a geometric centre.
Points
@property
def Points(self) -> System.Collections.Generic.IReadOnlyList[GeoPoint2]
Gets the points, in pixels from the snap point.