Class NwcSectionBox
- Namespace
- NwcIO.Model.Sectioning
- Assembly
- NwcIO.dll
A 3D section box (oriented or axis-aligned bounding volume) used for model isolation and clash review.
public sealed record NwcSectionBox : IEquatable<NwcSectionBox>Inheritance
Implements
Inherited Members
Constructors
NwcSectionBox()
public NwcSectionBox()NwcSectionBox(BoundingBox3d, bool)
public NwcSectionBox(BoundingBox3d bounds, bool isEnabled = true)Parameters
boundsBoundingBox3disEnabledbool
Properties
Bounds
public BoundingBox3d Bounds { get; init; }Property Value
IsEnabled
public bool IsEnabled { get; init; }Property Value
Methods
Contains(Vector3d)
Returns true if the point lies inside the section box volume.
public bool Contains(Vector3d point)Parameters
pointVector3d
Returns
Intersects(BoundingBox3d)
Returns true if the target bounding box intersects the section box.
public bool Intersects(BoundingBox3d other)Parameters
otherBoundingBox3d
Returns
ToSectionPlanes()
Converts this section box into 6 bounding NwcIO.Model.Sectioning.NwcSectionPlane instances.
public IReadOnlyList<NwcSectionPlane> ToSectionPlanes()