Show / Hide Table of Contents

Class HatchBoundaryPath

Represent a loop of a Hatch boundaries.

Inheritance
System.Object
HatchBoundaryPath
Implements
System.ICloneable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 Source

HatchBoundaryPath(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 Source

Edges

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>
| Improve this Doc View Source

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.

| Improve this Doc View Source

PathType

Gets the boundary path type flag.

Declaration
public HatchBoundaryPathTypeFlags PathType { get; }
Property Value
Type Description
HatchBoundaryPathTypeFlags

Methods

| Improve this Doc View Source

Clone()

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.

| Improve this Doc View Source

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.

Implements

System.ICloneable
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX