Action:
|
Sets the position of one control point.
|
|
Prototype:
|
void bs2_curve_set_ctrlpt (
|
|
|
bs2_curve curv,
|
// bs2_curve to modify
|
|
|
int index,
|
// index of target
|
|
|
|
|
// control point
|
|
|
SPApar_pos const& pos,
|
// uv location copied
|
|
|
|
|
// into control point
|
|
|
double weight
|
// weight to which
|
|
|
|
|
// control point is
|
|
|
|
|
// assigned, only used if
|
|
|
|
|
// curve is rational
|
|
|
);
|
|
Includes:
|
#include "kernel/acis.hxx"
|
|
#include "baseutil/vector/param.hxx"
|
|
#include "kernel/spline/bs2_crv/bs2curve.hxx"
|
|
#include "kernel/spline/bs2_crv/sp2crtn.hxx"
|
|
Description:
|
Checks that
curv has a control point at the given index. If it does, it copies the
uv values of
pos into control point's data structure. When
curv is rational, it also copies the
weight value into the control point's data structure.
|
|
Library:
|
kernel
|
|
Filename:
|
kern/kernel/spline/bs2_crv/sp2crtn.hxx
|
|
Effect:
|
Changes model
|