Table of Contents

Class IfcGridAxis

Namespace
IfcIO.Grids
Assembly
IfcIO.dll

A straight spatial grid axis (line) representing an architectural or structural grid in an IFC model. Conforms to buildingSMART IFC standard IFCGRIDAXIS.

public sealed class IfcGridAxis

Inheritance

Inherited Members

Constructors

IfcGridAxis()

public IfcGridAxis()

IfcGridAxis(string, IfcVector3, IfcVector3, double, string?)

public IfcGridAxis(string tag, IfcVector3 start, IfcVector3 end, double elevation = 0, string? gridName = null)

Parameters

tag string
start IfcVector3
end IfcVector3
elevation double
gridName string?

Properties

Direction

public IfcVector3 Direction { get; }

Property Value

IfcVector3

Elevation

public double Elevation { get; set; }

Property Value

double

End

public IfcVector3 End { get; set; }

Property Value

IfcVector3

GridName

public string? GridName { get; set; }

Property Value

string?

Length

public double Length { get; }

Property Value

double

Start

public IfcVector3 Start { get; set; }

Property Value

IfcVector3

Tag

public string Tag { get; set; }

Property Value

string

Methods

ClosestPoint(IfcVector3, bool)

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

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

Parameters

point IfcVector3
segmentOnly bool

Returns

IfcVector3

DistanceToPoint(IfcVector3, bool)

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

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

Parameters

point IfcVector3
segmentOnly bool

Returns

double

DistanceToPoint2D(IfcVector3, bool)

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

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

Parameters

point IfcVector3
segmentOnly bool

Returns

double

Intersect2D(IfcGridAxis, out IfcVector3)

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

public bool Intersect2D(IfcGridAxis other, out IfcVector3 intersectionPoint)

Parameters

other IfcGridAxis
intersectionPoint IfcVector3

Returns

bool

SignedDistance2D(IfcVector3)

Computes signed offset distance in the horizontal XY plane (positive in increasing grid coordinate direction).

public double SignedDistance2D(IfcVector3 point)

Parameters

point IfcVector3

Returns

double

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.