bs2_curve_to_array
List of: Functions
Subjects: Construction Geometry, Spline Interface
Contents: Kernel

Action: Gets the dimension, degree, control points, weights, and knots for a 2D B-spline curve, and determines if the curve is rational.

Prototype: void bs2_curve_to_array (


bs2_curve bs, // given curve


int& dim, // returned dimension


int& deg, // returned degree


int& rat, // returned rational




// value


int& num_ctrlpts, // returned number of




// control points


SPAposition*& ctrlpts, // returned control




// points, uses




// x and y


double*& weights, // returned weights


int& num_knots, // returned number of




// knots


double*& knots // returned knots


);

Includes: #include "kernel/acis.hxx"

#include "baseutil/vector/position.hxx"

#include "kernel/spline/bs2_crv/bs2curve.hxx"

#include "kernel/spline/sg_bs2c/sps2crtn.hxx"

#include "baseutil/logical.h"

Description: This function creates arrays of control points, weights, and knot points. It is up to the application to delete these arrays.

Library: kernel

Filename: kern/kernel/spline/sg_bs2c/sps2crtn.hxx

Effect: Read-only
PDF/KERN/17FN2.PDF
HTM/DATA/KERN/KERN/17FN2/0047.HTM