PlanarFace Class

A planar face of a 3d solid.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)


public class PlanarFace : Face
Visual Basic
Public Class PlanarFace _
	Inherits Face
Visual C++
public ref class PlanarFace : public Face


Planar faces are defined by planes bounded by edge loops. The planes provide natural UV parameterization to the faces. S(u, v) = Origin + u*Vector[0] + v*Vector[1]


Copy C#
private void GetPlanarFaceInfo(Face face)
    PlanarFace planarFace = face as PlanarFace;
    if (null != planarFace)
       XYZ origin = planarFace.Origin;
        XYZ normal = planarFace.Normal;
        XYZ vector = planarFace.get_Vector(0);
Private Sub GetPlanarFaceInfo(face As Face)
    Dim planarFace As PlanarFace = TryCast(face, PlanarFace)
    If planarFace IsNot Nothing Then
        Dim origin As XYZ = planarFace.Origin
        Dim normal As XYZ = planarFace.Normal
        Dim vector As XYZ = planarFace.Vector(0)
    End If
End Sub

Inheritance Hierarchy

See Also