BRepWire.offsetPlanarWire Method

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

Description

Method that computes the offset for a planar wire. A BRepBody containing the resulting BRepWire object(s) is returned. It's possible that the offset result of a single wire can result in multiple wires.

Syntax

"bRepWire_var" is a variable referencing a BRepWire object.
returnValue = bRepWire_var.offsetPlanarWire(planeNormal, distance, cornerType)
"bRepWire_var" is a variable referencing a BRepWire object.

#include <Fusion/BRep/BRepWire.h>

returnValue = bRepWire_var->offsetPlanarWire(planeNormal, distance, cornerType);

Return Value

Type Description
BRepBody Returns a new temporary BRepBody that contains one or more wires that represent the offset.

Parameters

Name Type Description
planeNormal Vector3D Input Vector3D object that defines the positive direction of the plane the plane the wire lies on. This vector must be normal to the plane and is used to determine the side to offset the curves to. A positive offset distance is in the direction of the cross product (wire_tangent x wire_plane_normal). A negative offset is in the opposite direction.
distance double The offset distance in centimeters. See the description for the Normal argument to see how a positive or negative value for the distance specifies the direction of the offset.
cornerType OffsetCornerTypes Specifies how the corners are connected when offsetting the curves results in gaps in the corners. See the documentation of the enum for a detailed description of each option.

Samples

Name Description
BrepWire Sample BrepWires and BrepWire related functions

Version

Introduced in version December 2017