Table of Contents

Class NwcGridLine

Namespace
NwcIO.Model.Grids
Assembly
NwcIO.dll

A straight spatial grid line (axis) in a BIM or Navisworks coordination model.

public sealed class NwcGridLine

Inheritance

Inherited Members

Constructors

NwcGridLine()

public NwcGridLine()

NwcGridLine(string, Vector3d, Vector3d, double, string?)

public NwcGridLine(string name, Vector3d start, Vector3d end, double elevation = 0, string? systemName = null)

Parameters

name string
start Vector3d
end Vector3d
elevation double
systemName string?

Properties

Direction

public Vector3d Direction { get; }

Property Value

Vector3d

Elevation

public double Elevation { get; set; }

Property Value

double

End

public Vector3d End { get; set; }

Property Value

Vector3d

Length

public double Length { get; }

Property Value

double

Name

public string Name { get; set; }

Property Value

string

Start

public Vector3d Start { get; set; }

Property Value

Vector3d

SystemName

public string? SystemName { get; set; }

Property Value

string?

Methods

ClosestPoint(Vector3d, bool)

Computes the point on this grid line closest to the specified 3D point.

public Vector3d ClosestPoint(Vector3d point, bool segmentOnly = false)

Parameters

point Vector3d
segmentOnly bool

Returns

Vector3d

DistanceToPoint(Vector3d, bool)

Computes the 3D distance from the specified point to this grid line.

public double DistanceToPoint(Vector3d point, bool segmentOnly = false)

Parameters

point Vector3d
segmentOnly bool

Returns

double

DistanceToPoint2D(Vector3d, bool)

Computes the horizontal 2D distance (XY plane) from the specified point to this grid line.

public double DistanceToPoint2D(Vector3d point, bool segmentOnly = false)

Parameters

point Vector3d
segmentOnly bool

Returns

double

Intersect2D(NwcGridLine, out Vector3d)

Calculates the 2D intersection point in the XY plane between this grid line and another.

public bool Intersect2D(NwcGridLine other, out Vector3d intersectionPoint)

Parameters

other NwcGridLine
intersectionPoint Vector3d

Returns

bool

SignedDistance2D(Vector3d)

Computes signed offset distance from the line in 2D (positive on left side, negative on right side).

public double SignedDistance2D(Vector3d point)

Parameters

point Vector3d

Returns

double

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.