OCCCurve.offset

OCCCurve.offset(distance, direction)

Return a new curve that is the offset of this curve over the specified distance in the given direction.

Parameters:
distancefloat

The offset distance.

directioncompas.geometry.Vector

The offset direction. Note that this direction defines the normal of the offset plane. At every point of the curve, a positive offset ditance will generate a corresponding offset point in the direction of the cross product vector of the curve tangent and the offset plane normal.

Returns:
OCCCurve