BRepBuilder Class

BRepBuilder Class

A class that allows direct construction of geometry objects (solids, open shells, etc.).
Inheritance Hierarchy
SystemObject
  Autodesk.Revit.DBShapeBuilder
    Autodesk.Revit.DBBRepBuilder

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public class BRepBuilder : ShapeBuilder
Public Class BRepBuilder
	Inherits ShapeBuilder
public ref class BRepBuilder : public ShapeBuilder
type BRepBuilder = 
    class
        inherit ShapeBuilder
    end

The BRepBuilder type exposes the following members.

Constructors
 NameDescription
Public methodBRepBuilder Construct a BRepBuilder to use in constructing geometry.
Top
Properties
 NameDescription
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
(Inherited from ShapeBuilder)
Top
Methods
 NameDescription
Public methodAddCoEdge Add a co-edge associated to a previously added edge. A co-edge represents the use of an edge on one of the edge's faces. BrepBuilder allows at most two faces per edge, hence at most two co-edges per edge, and the co-edges must have opposite bCoEdgeIsReversed flags. The co-edges in a loop must be added in the order in which they occur in the loop (i.e., in their topological order).
Public methodAddEdge Add a new edge to the geometry being built. The BRepBuilder uses edges only to store edge geometry and to track pairs of co-edges that share an edge.
Public methodAddFace Creates an empty face in the geometry being built. Other BRepBuilder methods are used to add loops to the face.
Public methodAddLoop Creates an empty loop in a given face of the geometry being built. Other BRepBuilder methods are used to add co-edges to the loop.
Public methodAllowRemovalOfProblematicFaces Allow BRepBuilder to remove problematic faces (e.g., due to inaccurate edge geometry). If this option is enabled and BRepBuilder removes some faces, the output geometry's type will be OpenShell regardless of the expected type specified when the BRepBuilder was created.
Public methodCanAddGeometry A validator function that checks the state of this BRepBuilder object. Returns true if this BRepBuilder object is accepting b-rep data, false otherwise.
Public methodDispose
(Inherited from ShapeBuilder)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodFinish Complete construction of the geometry. The geometry will be validated and, if valid, stored in this BRepBuilder. Otherwise it will be deleted.
Public methodFinishFace Indicates that the caller has finished defining the given face.
Public methodFinishLoop Indicates that the caller has finished defining the given loop.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetResult Get the Solid built by this BRepBuilder. This will clear the built geometry stored in the BRepBuilder. This function will throw if this BRepBuilder hasn't completed building the b-rep. Use IsResultAvailable() to verify that this BRepBuilder contains a valid result.
Public methodGetResult(ExternalGeometryId, BRepBuilderPersistentIds) Get the ExternallyTaggedBRep built by this BRepBuilder. This will clear the built geometry stored in the BRepBuilder. This function will throw if this BRepBuilder hasn't completed building the b-rep. Use IsResultAvailable() to verify that this BRepBuilder contains a valid result.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberIsPermittedSurfaceType A validator function that checks whether the surface object is of type supported as face surface by BRepBuilder.
Public methodIsResultAvailable A validator function that checks the state of this BRepBuilder object. Returns true if this BRepBuilder object has successfully built a b-rep.
Public methodIsValidEdgeId A validator function that checks whether the edge id corresponds to an edge previously added to this BRepBuilder object.
Public methodIsValidFaceId A validator function that checks whether the face id corresponds to a face previously added to this BRepBuilder object.
Public methodIsValidLoopId A validator function that checks whether the loop id corresponds to a loop previously added to this BRepBuilder object.
Public methodIsValidPersistentIdsMap A validator function that makes sure that all BRepBuilderGeometryIds in the input map can be found in this BRepBuilder object.
Public methodRemovedSomeFaces Returns 'true' if BRepBuilder removed some problematic faces from the output geometry, 'false' if not. If allowRemovalOfProblematicFaces was not called to enable removal of problematic faces, this function will return 'false'. Note that if some faces were removed, the output geometry's type will be OpenShell regardless of the expected type that was specified when the BRepBuilder was created.
Public methodSetAllowShortEdges Make BRepBuilder allow edges that it would normally disallow as being too short for Revit geometry.
Public methodSetFaceMaterialId Sets material id to a face.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also