Table of Contents

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

bounds BoundingBox3d
isEnabled bool

Properties

Bounds

public BoundingBox3d Bounds { get; init; }

Property Value

BoundingBox3d

IsEnabled

public bool IsEnabled { get; init; }

Property Value

bool

Methods

Contains(Vector3d)

Returns true if the point lies inside the section box volume.

public bool Contains(Vector3d point)

Parameters

point Vector3d

Returns

bool

Intersects(BoundingBox3d)

Returns true if the target bounding box intersects the section box.

public bool Intersects(BoundingBox3d other)

Parameters

other BoundingBox3d

Returns

bool

ToSectionPlanes()

Converts this section box into 6 bounding NwcIO.Model.Sectioning.NwcSectionPlane instances.

public IReadOnlyList<NwcSectionPlane> ToSectionPlanes()

Returns

IReadOnlyList<NwcSectionPlane>