DataExchangeBaseRepsItf Interface CATIExchangeBSplineCurve

Usage: you can freely reimplement this interface.


interface CATIExchangeBSplineCurve

Interface to exchange BSpline curves.
Role: This interface is dedicated to get BSpline curves information.
Available from CATIA V5R10.

See also:
,


Method Index


o GetBSplineData(CATLONG32,CATLONG32,CATLONG32,double*,double*,double*)
Retrieves the poles, knots and weights that fully define a non-uniform, rational BSpline curve.
o GetBSplineInfo(CATLONG32*,CATLONG32*,CATLONG32*,short*,short*,short*,short*,double[3])
Retrieves overall information related to the BSpline curve.

Methods


o GetBSplineData
public virtual GetBSplineData( iPoles,
iKnots,
iWeights,
oPoles,
oKnots,
oWeights)
Retrieves the poles, knots and weights that fully define a non-uniform, rational BSpline curve.
Parameters:
iPoles
Set the number of poles expected to be returned in the oPoles argument. The function is expecting iPoles*3*sizeof(double) bytes of memory allocated by the caller in oPoles.
iKnots
Set the number of knots expected to be returned in the pKnots argument. The function is expecting iKnots*sizeof(double) bytes of memory allocated by the caller in oKnots.
iWeights
Inputs the number of weights expected to be returned in the oWeights argument. The function is expecting iWeights*sizeof(double) bytes of memory allocated by the caller in oWeights.
oPoles
Get the poles making up the curve. The memory is pre-allocated by the caller.
oKnots
Get the knots making up the curve. The memory is pre-allocated by the caller.
oWeights
Get the weights per pole when the curve is rational. The memory is pre-allocated by the caller.
o GetBSplineInfo
public virtual GetBSplineInfo( oOrder,
oNumPoles,
oNumKnots,
oIsRational,
oIsClosed,
oIsPeriodic,
oIsPlanar,
oPlaneVector)
Retrieves overall information related to the BSpline curve.
Parameters:
oOrder
Get the degree of the BSpline.(degree = order -1)
oNumPoles
Get the number of poles.
oNumKnots
Get the number of knots.
oIsRational
Get TRUE if the curve is rational ( a weight is assigned to every pole ), FALSE otherwise.
oIsClosed
Get TRUE if the curve is closed, FALSE otherwise.
oIsPeriodic
Get TRUE if the curve is periodic, FALSE otherwise.
oIsPlanar
Get TRUE if the curve is planar, FALSE otherwise.
oPlaneVector
Get the normal to the plane of the polyline when pIsPlanar is TRUE, do not use otherwise.

This object is included in the file: CATIExchangeBSplineCurve.h
If needed, your Imakefile.mk should include the module: DataExchangeBaseRepsItf

Copyright © 1999-2014, Dassault Systèmes. All rights reserved.