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 NwcGridLineInheritance
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
Properties
Direction
public Vector3d Direction { get; }Property Value
Elevation
public double Elevation { get; set; }Property Value
End
public Vector3d End { get; set; }Property Value
Length
public double Length { get; }Property Value
Name
public string Name { get; set; }Property Value
Start
public Vector3d Start { get; set; }Property Value
SystemName
public string? SystemName { get; set; }Property Value
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
Returns
DistanceToPoint(Vector3d, bool)
Computes the 3D distance from the specified point to this grid line.
public double DistanceToPoint(Vector3d point, bool segmentOnly = false)Parameters
Returns
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
Returns
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
otherNwcGridLineintersectionPointVector3d
Returns
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
pointVector3d
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()Returns
- string
-
A string that represents the current object.