BRepBody.findThicknessAtFace Method

Parent Object: BRepBody

PreviewThis functionality is provided as a preview of intended future API capabilities. You are encouraged to use it and report any problems or suggestions using the Fusion API and Scripts forum.

Because this is a preview of future functionality, there is the possibility that it will change, which will possibly break any existing programs that use this functionality. Because of that, you should never deliver any programs that use any preview capabilities. For a distributed program, you should wait until it has moved from preview to released state.


Defined in namespace "adsk::fusion" and the header file is <Fusion/BRep/BRepBody.h>

Description

Finds the thickness of the body at the specified face by casting a ray from the face along its inward normal and measuring the distance to the first opposite face of the body that is hit.

Syntax

"bRepBody_var" is a variable referencing a BRepBody object.

# Uses no optional arguments.
(returnValue, thickness) = bRepBody_var.findThicknessAtFace(face)

# Uses optional arguments.
(returnValue, thickness) = bRepBody_var.findThicknessAtFace(face, hitPoint)

#include <Fusion/BRep/BRepBody.h

// Uses no optional arguments.
// Declare the output arguments.
Ptr<BRepFace> face;
double thickness;
boolean returnValue = bRepBody_var->findThicknessAtFace(face, thickness);

// Uses optional arguments.
// Declare the output arguments.
Ptr<Point3D> hitPoint;

// Call the function.
Ptr<BRepBody> returnValue = bRepBody_var->findThicknessAtFace(face, thickness, hitPoint);

Return Value

Type Description
boolean Returns true if the thickness was successfully determined. Returns false if it could not be determined, for example if the face is non-planar or has no parallel opposite face.

Parameters

Name Type Description
face BRepFace Specifies a planar BRepFace on the body from which to measure the thickness.
thickness double The output thickness value in centimeters.
hitPoint Point3D An optional Point3D that specifies the point on the face from which to cast the ray. The point must lie on the given face. If not specified, a point is automatically chosen on the face.

This is an optional argument whose default value is null.

Samples

Name Description
Convert To Sheet Metal Sample Demonstrates finding the thickness of a body at a face and converting a BRepBody to sheet metal.

Version

Introduced in version May 2026