BRepBuilder.AddFace Method

BRepBuilderAddFace Method

Creates an empty face in the geometry being built. Other BRepBuilder methods are used to add loops to the face.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public BRepBuilderGeometryId AddFace(
	BRepBuilderSurfaceGeometry surfaceGeom,
	bool bFaceIsReversed
)
Public Function AddFace ( 
	surfaceGeom As BRepBuilderSurfaceGeometry,
	bFaceIsReversed As Boolean
) As BRepBuilderGeometryId
public:
BRepBuilderGeometryId^ AddFace(
	BRepBuilderSurfaceGeometry^ surfaceGeom, 
	bool bFaceIsReversed
)
member AddFace : 
        surfaceGeom : BRepBuilderSurfaceGeometry * 
        bFaceIsReversed : bool -> BRepBuilderGeometryId 

Parameters

surfaceGeom  BRepBuilderSurfaceGeometry
The face's support surface.
bFaceIsReversed  Boolean
True if the face's orientation is opposite to that of the surface, false if the orientations agree. The faces of each shell must be consistently oriented. For a solid (BRepType == Solid), the oriented face normals must point out of the solid; for a void (BRepType == Void), the face normals must point into the void. See the description of the bCoEdgeIsReversed input for AddCoEdge() for a discussion of the loop and co-edge orientation conventions to use with the BRepBuilder.

Return Value

BRepBuilderGeometryId
An id that can be used to identify the face while the BRepBuilder is actively building geometry (e.g., to add a loop to a face).
Exceptions
ExceptionCondition
ArgumentNullException A non-optional argument was null
InvalidOperationException This BRepBuilder object isn't accepting new data, either because it has already been used to build geometry, or because of an error. Consult the State property of the BRepBuilder object for more details.
See Also