DisplayPen
ReferencesPen used to define stroke applied to several DisplayPipeline draw functions
Properties
How caps are drawn at the ends of open curves
Halos are blended colors drawn around a curve for purposes like selection
Halos are blended colors drawn around a curve for purposes like selection
Restart patterns at corners in a curve
If true, lengths in pattern definition are interpreted to be in world units. If false, screen pixel distances are used.
Offset to apply to pattern. If RhinoMath.UnsetSingle, then pattern is centered to keep even dash lengths at ends
Scale applied to the pattern, use 0.0 to let Rhino apply global scale.
Coordinate system for the pen's thickness
Methods
Create a duplicate of this display pen.
Returns: An exact duplicate of this display pen.
Create a display pen that matches a linetype definition
Create a display pen that matches a linetype definition on any viewport.
Get the pattern for this pen as an array of dash,gap,dash,gap... values
Set pattern to apply for a stroke.
Parameters:
| dashesAndGaps (IEnumerable<float>) | Lengths of dashes and gaps for a pattern. Dash is always assumed the first item. There is a limit to 8 dashes and gaps total |
Exceptions:
| ArgumentOutOfRangeException | thrown when dashes and gaps have more than 8 items |
Positions and thickness at those positions along a curve that define a taper.