Table of Contents

Class NwcMesh

Namespace
NwcIO.Model
Assembly
NwcIO.dll

A 3D polygon mesh extracted from Navisworks geometry streams, composed of 3D vertices, triangle indices, and local/world bounding boxes.

public sealed class NwcMesh

Inheritance

Inherited Members

Properties

BoundingBox

Axis-aligned bounding box of the mesh in local coordinates.

public BoundingBox3d? BoundingBox { get; init; }

Property Value

BoundingBox3d?

Id

public required int Id { get; init; }

Property Value

int

Indices

Triangle vertex index triplets (0-based indexing into NwcIO.Model.NwcMesh.Vertices). Every 3 consecutive integers define one triangle face: (i0, i1, i2).

public required IReadOnlyList<int> Indices { get; init; }

Property Value

IReadOnlyList<int>

Material

Surface material and color assigned to this mesh.

public NwcMaterial? Material { get; set; }

Property Value

NwcMaterial?

Name

public string Name { get; set; }

Property Value

string

Node

Owning scene hierarchy node associated with this mesh.

public NwcNode? Node { get; set; }

Property Value

NwcNode?

Transform

Optional 3D world transformation associated with this mesh instance.

public NwcTransform? Transform { get; set; }

Property Value

NwcTransform?

TriangleCount

Number of triangle faces in this mesh.

public int TriangleCount { get; }

Property Value

int

Vertices

Vertex positions in local mesh space.

public required IReadOnlyList<Vector3d> Vertices { get; init; }

Property Value

IReadOnlyList<Vector3d>

Methods

GetWorldBoundingBox()

Gets the axis-aligned bounding box of the mesh in world space coordinates.

public BoundingBox3d GetWorldBoundingBox()

Returns

BoundingBox3d

GetWorldVertices()

Returns vertices transformed into world space coordinates by NwcIO.Model.NwcMesh.Transform. If no transform is assigned, returns NwcIO.Model.NwcMesh.Vertices.

public IReadOnlyList<Vector3d> GetWorldVertices()

Returns

IReadOnlyList<Vector3d>