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 IfcGridAxisInheritance
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
tagstringstartIfcVector3endIfcVector3elevationdoublegridNamestring?
Properties
Direction
public IfcVector3 Direction { get; }Property Value
Elevation
public double Elevation { get; set; }Property Value
End
public IfcVector3 End { get; set; }Property Value
GridName
public string? GridName { get; set; }Property Value
Length
public double Length { get; }Property Value
Start
public IfcVector3 Start { get; set; }Property Value
Tag
public string Tag { get; set; }Property Value
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
pointIfcVector3segmentOnlybool
Returns
DistanceToPoint(IfcVector3, bool)
Computes 3D Euclidean distance from the specified point to this grid axis.
public double DistanceToPoint(IfcVector3 point, bool segmentOnly = false)Parameters
pointIfcVector3segmentOnlybool
Returns
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
pointIfcVector3segmentOnlybool
Returns
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
otherIfcGridAxisintersectionPointIfcVector3
Returns
SignedDistance2D(IfcVector3)
Computes signed offset distance in the horizontal XY plane (positive in increasing grid coordinate direction).
public double SignedDistance2D(IfcVector3 point)Parameters
pointIfcVector3
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()Returns
- string
-
A string that represents the current object.