Action:
|
Offsets a planar
bs3_curve by a specified distance.
|
|
Prototype:
|
bs3_curve bs3_curve_offset_by_dist (
|
|
|
const bs3_curve bs,
|
// given curve
|
|
|
double dist,
|
// distance to offset
|
|
|
logical to_right,
|
// direction to offset
|
|
|
|
|
// (left or right)
|
|
|
const SPAunit_vector&
|
// direction of
|
|
|
|
plane_nor
|
// plane normal
|
|
|
|
=*(SPAunit_vector*)NULL_REF
|
|
|
);
|
|
|
bs3_curve bs3_curve_offset_by_dist (
|
|
|
const bs3_curve bs,
|
// given curve
|
|
|
double dist,
|
// distance to offset
|
|
|
logical to_right,
|
// direction to offset
|
|
|
|
|
// (left or right)
|
|
|
logical make_seg_list,
|
// curve normal
|
|
|
bs3_offset_seg*&
|
// list of
|
|
|
|
seg_list,
|
// segments
|
|
|
SPAunit_vector& plane_nor// plane normal
|
|
|
|
=*(SPAunit_vector*)NULL_REF
|
|
|
);
|
|
Includes:
|
#include "kernel/acis.hxx"
|
|
#include "baseutil/logical.h"
|
|
#include "baseutil/vector/unitvec.hxx"
|
|
#include "kernel/spline/bs3_crv/bs3curve.hxx"
|
|
#include "kernel/spline/sg_bs3c/bs3cseg.hxx"
|
|
#include "kernel/spline/sg_bs3c/sps3crtn.hxx"
|
|
Description:
|
The curve is offset in the plane in which it lies, and either to the right (or left) as viewed along the curve. If an error occurs, a
NULL curve is returned.
|
|
|
The
plane_nor argument supplies the plane normal, and is used only for linear b-spline cases. In all other cases
plane_nor is ignored.
|
|
Errors:
|
If the spline is linear and
plane_nor is not specified, the function returns a
NULL b-spline (unsuccessful).
|
|
|
|
If the given B-spline is a degenerate B-spline the function returns a
NULL B-spline (unsuccessful).
|
|
Library:
|
kernel
|
|
Filename:
|
kern/kernel/spline/sg_bs3c/sps3crtn.hxx
|
|
Effect:
|
Changes model
|