Class HatchBoundaryPath
Represent a loop of a Hatch boundaries.
Inheritance
Implements
Inherited Members
Namespace: netDxf.Entities
Assembly: CADability.dll
Syntax
public class HatchBoundaryPath : ICloneable
Remarks
The entities that make a loop can be any combination of lines, light weight polylines, polylines, circles, arcs, ellipses, and splines.
The entities that define a loop should define a closed path, they have to be on the same plane as the hatch, and with the same normal;
if these conditions are not met the result might be unpredictable.
Entities expressed in 3d coordinates like lines, polylines, and splines will be projected into its local plane.
All edges that make a HatchBoundaryPath are 2d objects, only have X and Y coordinates.
This is why to avoid unexpected results is important that all entities that define the paths have the same normal, same reference plane.
Constructors
| Improve this Doc View SourceHatchBoundaryPath(IEnumerable<EntityObject>)
Initializes a new instance of the Hatch class.
Declaration
public HatchBoundaryPath(IEnumerable<EntityObject> edges)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<EntityObject> | edges | List of entities that makes a loop for the hatch boundary paths. |
Properties
| Improve this Doc View SourceEdges
Gets the list of entities that makes a loop for the hatch boundary paths.
Declaration
public IReadOnlyList<HatchBoundaryPath.Edge> Edges { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IReadOnlyList<HatchBoundaryPath.Edge> |
Entities
Gets the list of entities that makes the boundary.
Declaration
public IReadOnlyList<EntityObject> Entities { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IReadOnlyList<EntityObject> |
Remarks
If the boundary path belongs to a non-associative hatch this list will contain zero entities.
PathType
Gets the boundary path type flag.
Declaration
public HatchBoundaryPathTypeFlags PathType { get; }
Property Value
| Type | Description |
|---|---|
| HatchBoundaryPathTypeFlags |
Methods
| Improve this Doc View SourceClone()
Creates a new HatchBoundaryPath that is a copy of the current instance.
Declaration
public object Clone()
Returns
| Type | Description |
|---|---|
| System.Object | A new HatchBoundaryPath that is a copy of this instance. |
Remarks
When cloning a HatchBoundaryPath, if it has entities that defines its contour, they will not be cloned.
Update()
Updates the internal HatchBoundaryPath data.
Declaration
public void Update()
Remarks
It is necessary to manually call this method when changes to the boundary entities are made. This is only applicable to associative hatches, non-associative hatches has no associated boundary entities.