TemporaryBRepManager Object

Derived from: Base Object
Defined in namespace "adsk::fusion" and the header file is <Fusion/BRep/TemporaryBRepManager.h>

Description

A utility object that provides functionality to create and manipulate B-Rep data outside the context of a document. The provides direct access to the modeling core without the overhead of parametrics, persistence, transactions, or graphics. It also provides a way of directly defining and creating B-Rep data.

Methods

Name Description
booleanOperation Performs the specified Boolean operation between the two input bodies. The input bodies need not be solid but can be faces that are combined or trimmed.
classType Static function that all classes support that returns the type of the class as a string. The returned string matches the string returned by the objectType property. For example if you have a reference to an object and you want to check if it's a SketchLine you can use myObject.objectType == fusion.SketchLine.classType().
copy Creates a temporary copy of the input BRepBody, BRepFace, or BRepEdge object.
createBox Creates a new temporary solid box BRepBody object.
createCylinderOrCone Creates a temporary solid cylinder or cone BRepBody object.
createEllipticalCylinderOrCone Creates a temporary elliptical solid cylinder or cone BrepBody object.
createFaceFromPlanarWires Creates a body from multiple wires that all lie within the same plane. Multiple wires are used when creating a plane with interior holes. One wire defines the outer shape and the other wires define the interior loops of the created face.
createFromFile Creates new BRepBody objects based on the contents of the specified file.
createHelixWire Creates a B-Rep body that contains a wire with a single edge that represents a helical curve.
createProjectedBodyOutline Computes the approximate outline of a body. The outline is the loops formed from projecting the non-occluded silhouette curves of the body onto a plane. The outline is returned as a temporary BRepBody consisting of planar BRepFace objects whose boundaries form the outline.

The computed outline can be an approximation i.e. not precise. This is to make it useful in cases where robustness is more important than precision. For most cases, a precise analytical result is computed, but in some cases, the silhouette of a curved surface may be approximated by a series of straight lines. Even though it's an approximation you can control the tolerance of the approximation. A tighter tolerance will result in a longer compute time.
createRuledSurface Creates a new body by creating a ruled surface between the two input wire bodies.
createSilhouetteCurves Calculates the silhouette curve geometry for a given face as viewed from a given direction.
createSphere Creates a temporary spherical BRepBody object.
createTorus Creates a temporary toroidal BRepBody object.
createWireFromCurves Give an array of curve geometry objects, this method creates a new wire body.
deleteFaces Deletes one or more faces from a temporary BRepBody. The body that will be modified is determined by getting the parent body of the input faces.
exportToFile Exports the input bodies to the specified file.
get Gets the TempoaryBRepManager object. This object provides access to functionality to create an manipulate temporary B-Rep data outside the context of a document.
imprintOverlapBodies Method that finds regions of faces on two bodies which overlap and creates new bodies where the faces are split at the edges of the overlaps. This does not modify the original bodies but creates new temporary bodies that contain the imprints.
planeIntersection Calculates the intersection between the input body and plane and creates a wire body that represents the intersection curves.
transform Transforms the input body using the specified transformation matrix.

Properties

Name Description
isValid Indicates if this object is still valid, i.e. hasn't been deleted or some other action done to invalidate the reference.
objectType This property is supported by all objects in the API and returns a string that contains the full name (namespace::objecttype) describing the type of the object.

It's often useful to use this in combination with the classType method to see if an object is a certain type. For example: if obj.objectType == adsk.core.Point3D.classType():

Accessed From

TemporaryBRepManager.get

Samples

Name Description
TemporaryBRepManager API Sample TemporaryBRepManager related functions

Version

Introduced in version December 2017