|
Action:
|
Scales domain point values specified in the pfunc's domain_space into the unit_square domain_space.
|
|
|
Prototype:
|
void DM_scale_unit_dpt_from_pfunc (
|
|
|
int& rtn_err,
|
// out: 0=success
|
|
|
|
|
// or neg err code
|
|
|
DS_pfunc* pfunc,
|
// in: pfunc to query
|
|
|
int domain_dim,
|
// in: pfunc domain_dim
|
|
|
|
|
// (for error checking)
|
|
|
double* uv,
|
// i/o: change uv coord
|
|
|
|
|
// value to fit in unit
|
|
|
|
|
// square
|
|
|
SDM_options* sdmo
|
// in:SDM_options pointer
|
|
|
|
= NULL
|
//
|
|
|
);
|
|
|
Includes:
|
#include "kernel/acis.hxx"
|
|
#include "dshusk/dskernel/dmapi.hxx"
|
|
#include "dshusk/dskernel/dspfunc.hxx"
|
|
#include "dshusk/dskernel/sdm_options.hxx"
|
|
|
Description:
|
Modifies
uv.
|
|
|
Scales
uv coordinate values to map surface parameter points from the pfunc's actual domain range into the unit square range. For example, an input
uv value of [7.0,7.0] on a surface whose knot vector runs from 2.0 to 12.0 for both the
u and
v directions will have an output
uv value of [.5,.5].
|
|
|
Note
|
The DS_dmod's domain range may be different from its contained DS_pfunc's domain range. The DS_dmod domain range remains constant during a deformable modeling session while the DS_pfunc domain range may change. Initially they start out the same.
|
|
|
Errors:
|
rtn_err set to
|
|
0 for success
|
|
DM_NULL_INPUT_PTR when pfunc is
NULL on entry.
|
|
DM_BAD_DOMAIN_DIM = input domain_dim != to pfunc->Domain_dim()
|
|
DM_BAD_DOMAIN_PT_RANGE = input par_pos not in
pfunc's domain range or
domain_dim != 1 or 2
|
|
|
Library:
|
dshusk
|
|
|
Filename:
|
ds/dshusk/dskernel/dmapi.hxx
|
|
|
Effect:
|
Changes model
|