LibCapy - bezier

Bezier surface class.

Macros:

Maximum order and dimension for a CapyBezier

Enumerations:

None.

Typedefs:

Type of the order of a CapyBezier

Bezier curve object

Iteration windows for CapyBezierIterator

Bezier spline object (composite of Bezier curves)

Struct CapyBezierPosition :

Struct CapyBezierPosition's properties:

Struct CapyBezierPosition's methods:

None.

Struct CapyBezierIterator :

Struct CapyBezierIterator's properties:

Index of the current step in the iteration

Returned data type

List of windows

Bezier associated to the iteration

Epsilon for the step of iteration using euclidean distance along the Bezier curve (default: 0.1)

Memory pool for the windows

Struct CapyBezierIterator's methods:

Destructor

Reset the iterator

Output and side effect(s):

Return the first position of the iteration

Move the iterator to the next position

Output and side effect(s):

Return the next position of the iteration

Check if the iterator is on a valid position

Output and side effect(s):

Return true if the iterator is on a valid position, else false

Get the current position of the iteration

Output and side effect(s):

Return the current position

Functions:

Create a CapyBezier

Input argument(s):

order: the order of the Bezier object
dimIn: number of inputs
dimOut: number of outputs

Output and side effect(s):

Return a CapyBezier

Allocate memory for a new CapyBezier and create it

Input argument(s):

order: the order of the Bezier object
dimIn: number of inputs
dimOut: number of outputs

Output and side effect(s):

Return a CapyBezier

Exception(s):

May raise CapyExc_MallocFailed.

Allocate memory for a new CapyBezier and load it from a binary stream

Input argument(s):

stream: the binary stream to load the Bezier from

Output and side effect(s):

Return a CapyBezier

Exception(s):

May raise CapyExc_MallocFailed, CapyExc_StreamReadError.

Free the memory used by a CapyBezier* and reset '*that' to NULL

Input argument(s):

that: a pointer to the CapyBezier to free

Create an iterator on a CapyBezier

Input argument(s):

bezier: the bezier on which to iterate

Output and side effect(s):

Return the iterator

Allocate memory and create an iterator on a CapyBezier

Input argument(s):

bezier: the bezier on which to iterate

Output and side effect(s):

Return the iterator

Free the memory used by a pointer to an iterator and reset '*that' to NULL

Input argument(s):

that: a pointer to the iterator to free

Create a CapyBezierSpline

Input argument(s):

nbSegment: array of dimIn integer, number of segments per input dimension
dimIn: number of inputs
dimOut: number of outputs

Output and side effect(s):

Return a CapyBezierSpline

Allocate memory for a new CapyBezierSpline and create it

Input argument(s):

nbSegment: array of dimIn integer, number of segments per input dimension
dimIn: number of inputs
dimOut: number of outputs

Output and side effect(s):

Return a CapyBezierSpline

Exception(s):

May raise CapyExc_MallocFailed.

Free the memory used by a CapyBezierSpline* and reset '*that' to NULL

Input argument(s):

that: a pointer to the CapyBezierSpline to free

2022-02-06
in LibCapy,
76 views
Copyright 2021-2024 Baillehache Pascal