Action:
|
Offsets the given surface by offset distance.
|
|
Prototype:
|
bs3_surface bs3_surface_offset (
|
|
|
const bs3_surface orig_surf,
|
// given surface
|
|
|
double offset_dist,
|
|
// distance to offset
|
|
|
double offset_tol
|
|
// approximate
|
|
|
|
|
|
// tolerance
|
|
|
);
|
|
Includes:
|
#include "kernel/acis.hxx"
|
|
#include "kernel/spline/bs3_srf/bs3surf.hxx"
|
|
#include "kernel/spline/sg_bs3s/sps3srtn.hxx"
|
|
Description:
|
It is assumed that the offset does not create a degenerate surface.
|
|
|
A +ve distance means to offset in the direction of the surface normal, and a -ve distance means to offset in direction opposite to the surface normal.
|
|
|
The offset surface constructed will be at least with in the
offset_tol tolerance value ( 0.001 is a good value ).
|
|
Errors:
|
If an error occurs, a
NULL surface is returned.
|
|
Limitations:
|
If the surface has any flat-spots (zero length normals) then the offset-algorithm fails and a
NULL
surface is returned.
|
|
|
|
If a too low
offset_tol is given, a potential data explosion may happen in the result.
|
|
Library:
|
kernel
|
|
Filename:
|
kern/kernel/spline/sg_bs3s/sps3srtn.hxx
|
|
Effect:
|
Changes model
|