|
Action:
|
Scales domain points from the unit domain range into the pfunc's actual domain range.
|
|
|
Prototype:
|
void DM_scale_unit_dpt_to_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: scale uv coords
|
|
|
|
|
// to pfunc domain range.
|
|
|
|
|
// sized:[domain_dim]
|
|
|
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 the unit square into the actual parameter range of the input pfunc. For example, an input
uv value of [.5,.5] 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 [7.0,7.0].
|
|
|
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() or domain_dim != 1 or 2
|
|
DM_BAD_DOMAIN_PT_RANGE = input par_pos not in 0 to 1 range
|
|
|
Library:
|
dshusk
|
|
|
Filename:
|
ds/dshusk/dskernel/dmapi.hxx
|
|
|
Effect:
|
Changes model
|