File: SoIndexedNurbsCurve.ivm

package info (click to toggle)
inventor 2.1.5-10-14
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 32,892 kB
  • ctags: 21,729
  • sloc: ansic: 33,867; lisp: 7,361; cpp: 3,874; yacc: 369; sh: 359; perl: 234; awk: 141; makefile: 76; csh: 35; sed: 11
file content (71 lines) | stat: -rw-r--r-- 2,577 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
NAME SoIndexedNurbsCurve SoIndCurve "" { indexed NURBS curve shape node }

INCLUDE nodes/SoIndexedNurbsCurve.h

DESC {
This class represents a NURBS curve based on the knot vector and the
control points that you specify. The \vknotVector\. field specifies a
floating-point array of values; the values are the coordinates of the
knot points in the curve, and you must enter them in non-decreasing
order.  The \vnumControlPoints\. field specifies the number of control
points the curve will have and will use the current coordinates that
are indexed from the \vcoordIndex\. field.
\p
You can get a curve of minimum order (2) by specifying two more knots
than control points and having at least two control points.  This
curve would be a set of line segments connecting the control points
together.
\p
You can get a curve of maximum order (8) by specifying 8 more knots
than control points and having at least 8 control points.  In this
curve, each control point would have influence on a larger portion of
the curve than with curves of lesser order.
\p
The control points of the curve are transformed by the current
transformation matrix. The curve is drawn with the current lighting
model and drawing style (drawing style \kFILLED\. is treated as
\kLINES\.).
 The coordinates, normals, and texture
coordinates of a NURBS curve are generated, so you cannot bind
explicit normals or texture coordinates to a NURBS curve.
\p
The approximation of the curve by line segments is affected by the
current complexity value.
}

FIELD numControlPoints { Number of control points for the curve. }
FIELD coordIndex       { Coordinate indices for the control points. }
FIELD knotVector       { The knot vector for the curve. Values must be
                         in non-decreasing order. }

METHOD "" SoIndexedNurbsCurve() {
Creates an indexed NURBS curve node with default settings.
}

METHOD "" static SoType getClassTypeId() {
Returns type identifier for this class.
}

ACTION SoGLRenderAction {
Draws the curve based on the current coordinates, material, and so on.
}

ACTION SoRayPickAction {
Picks the curve based on the current coordinates and transformation.
}

ACTION SoGetBoundingBoxAction {
Computes the bounding box that encloses all control points of the
curve with the current transformation applied to them. Sets the center
to the average of the control points.
}

ACTION SoCallbackAction {
If any line segment callbacks are registered with the action, they
will be invoked for each successive segment approximating the curve.
}

ALSO {
SoNurbsCurve,
SoIndexedNurbsSurface
}