Debian Codegraph @

lib/database/src/so/nodes/SoIndexedNurbsCurve.c++

raw symbols SCIP
1 /*
2 *
3 * Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * Further, this software is distributed without any warranty that it is
16 * free of the rightful claim of any third person regarding infringement
17 * or the like. Any license provided herein, whether implied or
18 * otherwise, applies only to this software file. Patent licenses, if
19 * any, provided herein do not apply to combinations of this program with
20 * other software, or any other product whatsoever.
21 *
22 * You should have received a copy of the GNU Lesser General Public
23 * License along with this library; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 *
26 * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
27 * Mountain View, CA 94043, or:
28 *
29 * http://www.sgi.com
30 *
31 * For further information regarding this notice, see:
32 *
33 * http://oss.sgi.com/projects/GenInfo/NoticeExplan/
34 *
35 */
36
37 /*
38 * Copyright (C) 1990,91,92,93 Silicon Graphics, Inc.
39 *
40 _______________________________________________________________________
41 ______________ S I L I C O N G R A P H I C S I N C . ____________
42 |
43 | $Revision: 1.2 $
44 |
45 | Classes:
46 | SoIndexedNurbsCurve
47 |
48 | Author(s) : Dave Immel
49 |
50 ______________ S I L I C O N G R A P H I C S I N C . ____________
51 _______________________________________________________________________
52 */
53
54 #include <GL/gl.h>
55 #include <Inventor/SbBox.h>cxx . . $ `<file>/lib/database/include/Inventor/SbBox.h`/
56 #include <Inventor/SoDB.h>cxx . . $ `<file>/lib/database/include/Inventor/SoDB.h`/
57 #include <Inventor/actions/SoGLRenderAction.h>cxx . . $ `<file>/lib/database/include/Inventor/actions/SoGLRenderAction.h`/
58 #include <Inventor/actions/SoGetBoundingBoxAction.h>cxx . . $ `<file>/lib/database/include/Inventor/actions/SoGetBoundingBoxAction.h`/
59 #include <Inventor/actions/SoRayPickAction.h>cxx . . $ `<file>/lib/database/include/Inventor/actions/SoRayPickAction.h`/
60 #include <Inventor/bundles/SoMaterialBundle.h>cxx . . $ `<file>/lib/database/include/Inventor/bundles/SoMaterialBundle.h`/
61 #include <Inventor/caches/SoBoundingBoxCache.h>cxx . . $ `<file>/lib/database/include/Inventor/caches/SoBoundingBoxCache.h`/
62 #include <Inventor/details/SoDetail.h>cxx . . $ `<file>/lib/database/include/Inventor/details/SoDetail.h`/
63 #include <Inventor/elements/SoComplexityElement.h>cxx . . $ `<file>/lib/database/include/Inventor/elements/SoComplexityElement.h`/
64 #include <Inventor/elements/SoComplexityTypeElement.h>cxx . . $ `<file>/lib/database/include/Inventor/elements/SoComplexityTypeElement.h`/
65 #include <Inventor/elements/SoCoordinateElement.h>cxx . . $ `<file>/lib/database/include/Inventor/elements/SoCoordinateElement.h`/
66 #include <Inventor/elements/SoDrawStyleElement.h>cxx . . $ `<file>/lib/database/include/Inventor/elements/SoDrawStyleElement.h`/
67 #include <Inventor/elements/SoGLTextureEnabledElement.h>cxx . . $ `<file>/lib/database/include/Inventor/elements/SoGLTextureEnabledElement.h`/
68 #include <Inventor/elements/SoLightModelElement.h>cxx . . $ `<file>/lib/database/include/Inventor/elements/SoLightModelElement.h`/
69 #include <Inventor/elements/SoModelMatrixElement.h>cxx . . $ `<file>/lib/database/include/Inventor/elements/SoModelMatrixElement.h`/
70 #include <Inventor/elements/SoProjectionMatrixElement.h>cxx . . $ `<file>/lib/database/include/Inventor/elements/SoProjectionMatrixElement.h`/
71 #include <Inventor/elements/SoViewingMatrixElement.h>cxx . . $ `<file>/lib/database/include/Inventor/elements/SoViewingMatrixElement.h`/
72 #include <Inventor/elements/SoViewportRegionElement.h>cxx . . $ `<file>/lib/database/include/Inventor/elements/SoViewportRegionElement.h`/
73 #include <Inventor/nodes/SoIndexedNurbsCurve.h>cxx . . $ `<file>/lib/database/include/Inventor/nodes/SoIndexedNurbsCurve.h`/
74 #include "nurbs/SoAddPrefix.h"cxx . . $ `<file>/lib/database/src/so/nodes/nurbs/SoAddPrefix.h`/
75 #include "nurbs/SoGLRender.h"cxx . . $ `<file>/lib/database/src/so/nodes/nurbs/SoGLRender.h`/
76 #include "nurbs/SoPickRender.h"cxx . . $ `<file>/lib/database/src/so/nodes/nurbs/SoPickRender.h`/
77 #include "nurbs/SoPrimRender.h"cxx . . $ `<file>/lib/database/src/so/nodes/nurbs/SoPrimRender.h`/
78
79 SO_NODE_SOURCEcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:241:9`!(SoIndexedNurbsCurve);
80
81 ////////////////////////////////////////////////////////////////////////
82 //
83 // Description:
84 // Constructor
85 //
86 // Use: public
87
88 SoIndexedNurbsCurvecxx . . $ SoIndexedNurbsCurve#::SoIndexedNurbsCurvecxx . . $ SoIndexedNurbsCurve#SoIndexedNurbsCurve(49f6e7a06ebc5aa8).()
89 //
90 ////////////////////////////////////////////////////////////////////////
91 {
92 SO_NODE_CONSTRUCTORcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:309:9`!(SoIndexedNurbsCurve);
93
94 SO_NODE_ADD_FIELDcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:346:9`!(numControlPoints, (0));
95 SO_NODE_ADD_FIELDcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:346:9`!(coordIndex, (0));
96 SO_NODE_ADD_FIELDcxx . . $ `lib/database/include/Inventor/nodes/SoSubNode.h:346:9`!(knotVector, (0.0));
97
98 isBuiltIncxx . . $ SoFieldContainer#isBuiltIn. = TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!;
99 }
100
101 ////////////////////////////////////////////////////////////////////////
102 //
103 // Description:
104 // Destructor
105 //
106 // Use: private
107
108 SoIndexedNurbsCurvecxx . . $ SoIndexedNurbsCurve#::~cxx . . $ SoIndexedNurbsCurve#`~SoIndexedNurbsCurve`(49f6e7a06ebc5aa8).SoIndexedNurbsCurvecxx . . $ SoIndexedNurbsCurve#()
109 //
110 ////////////////////////////////////////////////////////////////////////
111 {
112 }
113
114 ////////////////////////////////////////////////////////////////////////
115 //
116 // Description:
117 // Performs GL rendering of the NURBS surface.
118 //
119 // Use: private
120
121 void
122 SoIndexedNurbsCurvecxx . . $ SoIndexedNurbsCurve#::GLRendercxx . . $ SoIndexedNurbsCurve#GLRender(5c806c737f468e18).(SoGLRenderActioncxx . . $ SoGLRenderAction# *action)
123 //
124 ////////////////////////////////////////////////////////////////////////
125 {
126 // First see if the object is visible and should be rendered now
127 if (! shouldGLRendercxx . . $ SoShape#shouldGLRender(446ea20fc76c7af1).(action))
128 return;
129
130 SoStatecxx . . $ SoState# *state = action->getStatecxx . . $ SoAction#getState(5c8eb8fe6550a03).();
131 state->pushcxx . . $ SoState#push(49f6e7a06ebc5aa8).();
132
133 // Draw unlit:
134 if (SoLightModelElementcxx . . $ SoLightModelElement#::getcxx . . $ SoLightModelElement#get(11b92d94184dca).(state) != SoLightModelElementcxx . . $ SoLightModelElement#::BASE_COLORcxx . . $ SoLightModelElement#BASE_COLOR.) {
135 SoLightModelElementcxx . . $ SoLightModelElement#::setcxx . . $ SoLightModelElement#set(aa3dd7920b706cb5).(state,
136 SoLightModelElementcxx . . $ SoLightModelElement#::BASE_COLORcxx . . $ SoLightModelElement#BASE_COLOR.);
137 }
138 // Make sure textures are disabled, as texturing of NURBS curves
139 // has not been implemented.
140 if (SoGLTextureEnabledElementcxx . . $ SoGLTextureEnabledElement#::getcxx . . $ SoGLTextureEnabledElement#get(fec557bbb5044c9b).(state)) {
141 SoGLTextureEnabledElementcxx . . $ SoGLTextureEnabledElement#::setcxx . . $ SoGLTextureEnabledElement#set(47a371b7b9daa722).(state, FALSEcxx . . $ `lib/database/include/Inventor/SbBasic.h:79:12`!);
142 }
143
144 // Make sure the first current material is sent to GL
145 SoMaterialBundlecxx . . $ SoMaterialBundle# mbcxx . . $ SoMaterialBundle#SoMaterialBundle(967167263c8a77b7).(action);
146 mb.sendFirstcxx . . $ SoMaterialBundle#sendFirst(49f6e7a06ebc5aa8).();
147
148 const SoCoordinateElementcxx . . $ SoCoordinateElement# *ce =
149 SoCoordinateElementcxx . . $ SoCoordinateElement#::getInstancecxx . . $ SoCoordinateElement#getInstance(297609619ca4e687).(state);
150
151
152 //
153 // Create a NURBS library renderer, and use it by making regular
154 // GL calls to it.
155 //
156 _SoNurbsGLRendercxx . . $ _SoNurbsGLRender# *GLRender = new _SoNurbsGLRendercxx . . $ _SoNurbsGLRender#();
157
158 float val = SoComplexityElementcxx . . $ SoComplexityElement#::getcxx . . $ SoComplexityElement#get(ac74db52455d3e23).(state);
159 if (val < 0.0) val = 0.0;
160 if (val > 1.0) val = 1.0;
161
162 if (SoComplexityTypeElementcxx . . $ SoComplexityTypeElement#::getcxx . . $ SoComplexityTypeElement#get(f065841ab22bd7f0).(state) ==
163 SoComplexityTypeElementcxx . . $ SoComplexityTypeElement#::OBJECT_SPACEcxx . . $ SoComplexityTypeElement#OBJECT_SPACE.)
164 {
165 //
166 // Set the nurbs properties to render the curve with uniform
167 // tessellation over the whole curve.
168 //
169 int steps;
170 if (val < 0.5) steps = (int)(18.0 *val) + 1;
171 else steps = (int)(380.0*val) - 180;
172
173 GLRender->setnurbspropertycxx . . $ _SoNurbsNurbsTessellator#setnurbsproperty(796cb56005eb5818).( N_V3Dcxx . . $ `lib/database/src/so/nodes/nurbs/clients/gl4types.h:41:9`!, N_SAMPLINGMETHODcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:60:9`!,
174 N_FIXEDRATEcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:62:10`! );
175 GLRender->setnurbspropertycxx . . $ _SoNurbsNurbsTessellator#setnurbsproperty(796cb56005eb5818).( N_V3DRcxx . . $ `lib/database/src/so/nodes/nurbs/clients/gl4types.h:42:9`!, N_SAMPLINGMETHODcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:60:9`!,
176 N_FIXEDRATEcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:62:10`! );
177 GLRender->setnurbspropertycxx . . $ _SoNurbsNurbsTessellator#setnurbsproperty(796cb56005eb5818).( N_V3Dcxx . . $ `lib/database/src/so/nodes/nurbs/clients/gl4types.h:41:9`!, N_S_STEPScxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:103:9`!, steps);
178 GLRender->setnurbspropertycxx . . $ _SoNurbsNurbsTessellator#setnurbsproperty(796cb56005eb5818).( N_V3Dcxx . . $ `lib/database/src/so/nodes/nurbs/clients/gl4types.h:41:9`!, N_T_STEPScxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:104:9`!, steps);
179 GLRender->setnurbspropertycxx . . $ _SoNurbsNurbsTessellator#setnurbsproperty(796cb56005eb5818).( N_V3DRcxx . . $ `lib/database/src/so/nodes/nurbs/clients/gl4types.h:42:9`!, N_S_STEPScxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:103:9`!, steps);
180 GLRender->setnurbspropertycxx . . $ _SoNurbsNurbsTessellator#setnurbsproperty(796cb56005eb5818).( N_V3DRcxx . . $ `lib/database/src/so/nodes/nurbs/clients/gl4types.h:42:9`!, N_T_STEPScxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:104:9`!, steps);
181 }
182 else
183 {
184 //
185 // Set the nurbs properties to render the curve with a view
186 // dependent tessellation using the given pixel tolerance.
187 //
188 float pixTolerance;
189
190 if (val < 0.10) pixTolerance = 10;
191 else if (val < 0.20) pixTolerance = 8;
192 else if (val < 0.30) pixTolerance = 6;
193 else if (val < 0.40) pixTolerance = 4;
194 else if (val < 0.50) pixTolerance = 2;
195 else if (val < 0.70) pixTolerance = 1;
196 else if (val < 0.80) pixTolerance = .5;
197 else if (val < 0.90) pixTolerance = .25;
198 else pixTolerance = .125;
199
200 GLRender->setnurbspropertycxx . . $ _SoNurbsNurbsTessellator#setnurbsproperty(796cb56005eb5818).( N_V3Dcxx . . $ `lib/database/src/so/nodes/nurbs/clients/gl4types.h:41:9`!, N_SAMPLINGMETHODcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:60:9`!,
201 N_PARAMETRICDISTANCEcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:64:10`! );
202 GLRender->setnurbspropertycxx . . $ _SoNurbsNurbsTessellator#setnurbsproperty(796cb56005eb5818).( N_V3DRcxx . . $ `lib/database/src/so/nodes/nurbs/clients/gl4types.h:42:9`!, N_SAMPLINGMETHODcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:60:9`!,
203 N_PARAMETRICDISTANCEcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:64:10`! );
204 GLRender->setnurbspropertycxx . . $ _SoNurbsNurbsTessellator#setnurbsproperty(796cb56005eb5818).( N_V3Dcxx . . $ `lib/database/src/so/nodes/nurbs/clients/gl4types.h:41:9`!, N_PIXEL_TOLERANCEcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:93:9`!, pixTolerance );
205 GLRender->setnurbspropertycxx . . $ _SoNurbsNurbsTessellator#setnurbsproperty(796cb56005eb5818).( N_V3DRcxx . . $ `lib/database/src/so/nodes/nurbs/clients/gl4types.h:42:9`!, N_PIXEL_TOLERANCEcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:93:9`!, pixTolerance );
206
207 //
208 // Calculate the total viewing matrix by concatenating the modeling
209 // matrix, the camera's viewing matrix, and the projection matrix.
210 // Pass the resulting matrix to the NURBS library for use in
211 // determining sampling and culling of the curve.
212 //
213 const SbViewportRegioncxx . . $ SbViewportRegion# & vpRegion =
214 SoViewportRegionElementcxx . . $ SoViewportRegionElement#::getcxx . . $ SoViewportRegionElement#get(862cff51521dc30e).(state);
215 const SbVec2scxx . . $ SbVec2s# & vpSize = vpRegion.getViewportSizePixelscxx . . $ SbViewportRegion#getViewportSizePixels(f469ede4e6b056fc).();
216 SbMatrixcxx . . $ SbMatrix# totalMatcxx . . $ SbMatrix#SbMatrix(49f6e7a06ebc5aa8).;
217 calcTotalMatrixcxx . . $ SoIndexedNurbsCurve#calcTotalMatrix(3ae54ab5ea5f8810). (state, totalMat);
218 GLRender->loadMatricescxx . . $ _SoNurbsGLRender#loadMatrices(15d9bd587e4bdfee). (totalMat, vpSize);
219 }
220
221 // Draw the curve.
222 drawNURBScxx . . $ SoIndexedNurbsCurve#drawNURBS(51cb3ecc88036509). (GLRender, state);
223 delete GLRender;
224
225 // Restore state
226 state->popcxx . . $ SoState#pop(49f6e7a06ebc5aa8).();
227
228 return;
229 }
230
231 ////////////////////////////////////////////////////////////////////////
232 //
233 // Description:
234 // Implements ray picking
235 //
236 // Use: protected
237
238 void
239 SoIndexedNurbsCurvecxx . . $ SoIndexedNurbsCurve#::rayPickcxx . . $ SoIndexedNurbsCurve#rayPick(a42a217290fbf492).(SoRayPickActioncxx . . $ SoRayPickAction# *action)
240 //
241 ////////////////////////////////////////////////////////////////////////
242 {
243 // First see if the object is pickable
244 if (! shouldRayPickcxx . . $ SoShape#shouldRayPick(aa7ed94d39f3eabe).(action))
245 return;
246
247 action->setObjectSpacecxx . . $ SoRayPickAction#setObjectSpace(49f6e7a06ebc5aa8).();
248
249 //
250 // Create an SoPickRender class which performs picking with the
251 // software NURBS library.
252 //
253 _SoNurbsPickRendercxx . . $ _SoNurbsPickRender# pickRendercxx . . $ _SoNurbsPickRender#_SoNurbsPickRender(a42a217290fbf492).(action);
254 float pixTolerance;
255 float val = SoComplexityElementcxx . . $ SoComplexityElement#::getcxx . . $ SoComplexityElement#get(ac74db52455d3e23).(action->getStatecxx . . $ SoAction#getState(5c8eb8fe6550a03).());
256 if (val < 0.10) pixTolerance = 10;
257 else if (val < 0.20) pixTolerance = 8;
258 else if (val < 0.30) pixTolerance = 6;
259 else if (val < 0.40) pixTolerance = 4;
260 else if (val < 0.50) pixTolerance = 2;
261 else if (val < 0.70) pixTolerance = 1;
262 else if (val < 0.80) pixTolerance = .5;
263 else if (val < 0.90) pixTolerance = .25;
264 else pixTolerance = .125;
265
266 //
267 // Use screen space tessellation with the pixel tolerance
268 // set to pixTolerance, and notify the library that the sampling
269 // and culling matrices will be passed in.
270 //
271 pickRender.setnurbspropertycxx . . $ _SoNurbsNurbsTessellator#setnurbsproperty(796cb56005eb5818). (N_V3Dcxx . . $ `lib/database/src/so/nodes/nurbs/clients/gl4types.h:41:9`!, N_PIXEL_TOLERANCEcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:93:9`!, pixTolerance);
272 pickRender.setnurbspropertycxx . . $ _SoNurbsNurbsTessellator#setnurbsproperty(796cb56005eb5818). (N_V3DRcxx . . $ `lib/database/src/so/nodes/nurbs/clients/gl4types.h:42:9`!, N_PIXEL_TOLERANCEcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:93:9`!, pixTolerance);
273 pickRender.setnurbspropertycxx . . $ _SoNurbsNurbsTessellator#setnurbsproperty(796cb56005eb5818). (N_V3Dcxx . . $ `lib/database/src/so/nodes/nurbs/clients/gl4types.h:41:9`!,N_SAMPLINGMETHODcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:60:9`!, N_PARAMETRICDISTANCEcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:64:10`!);
274 pickRender.setnurbspropertycxx . . $ _SoNurbsNurbsTessellator#setnurbsproperty(796cb56005eb5818). (N_V3DRcxx . . $ `lib/database/src/so/nodes/nurbs/clients/gl4types.h:42:9`!,N_SAMPLINGMETHODcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:60:9`!,N_PARAMETRICDISTANCEcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:64:10`!);
275 pickRender.setnurbspropertycxx . . $ _SoNurbsNurbsTessellator#setnurbsproperty(796cb56005eb5818). (N_V3Dcxx . . $ `lib/database/src/so/nodes/nurbs/clients/gl4types.h:41:9`!, N_CULLINGcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:57:9`!, N_CULLINGONcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:59:10`!);
276 pickRender.setnurbspropertycxx . . $ _SoNurbsNurbsTessellator#setnurbsproperty(796cb56005eb5818). (N_V3DRcxx . . $ `lib/database/src/so/nodes/nurbs/clients/gl4types.h:42:9`!, N_CULLINGcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:57:9`!, N_CULLINGONcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:59:10`!);
277
278 //
279 // Calculate the total viewing matrix by concatenating the modeling
280 // matrix, the camera's viewing matrix, and the projection matrix.
281 // Pass the resulting matrix to the NURBS library for use in determining
282 // sampling and culling of the curve.
283 //
284 const SbViewportRegioncxx . . $ SbViewportRegion# & vpRegion =
285 SoViewportRegionElementcxx . . $ SoViewportRegionElement#::getcxx . . $ SoViewportRegionElement#get(862cff51521dc30e).(action->getStatecxx . . $ SoAction#getState(5c8eb8fe6550a03).());
286 const SbVec2scxx . . $ SbVec2s# & vpSize = vpRegion.getViewportSizePixelscxx . . $ SbViewportRegion#getViewportSizePixels(f469ede4e6b056fc).();
287 SbMatrixcxx . . $ SbMatrix# totalMatcxx . . $ SbMatrix#SbMatrix(49f6e7a06ebc5aa8).;
288 calcTotalMatrixcxx . . $ SoIndexedNurbsCurve#calcTotalMatrix(3ae54ab5ea5f8810).(action->getStatecxx . . $ SoAction#getState(5c8eb8fe6550a03).(), totalMat);
289 pickRender.loadMatricescxx . . $ _SoNurbsPickRender#loadMatrices(15d9bd587e4bdfee).(totalMat, vpSize);
290
291 //
292 // Draw the NURBS curve. The SoPickRender class will receive primitive
293 // drawn by the NURBS library and test them for intersection.
294 //
295 drawNURBScxx . . $ SoIndexedNurbsCurve#drawNURBS(51cb3ecc88036509).(&pickRender, action->getStatecxx . . $ SoAction#getState(5c8eb8fe6550a03).());
296 }
297
298 ////////////////////////////////////////////////////////////////////////
299 //
300 // Description:
301 // Generates lines representing the NURBS curve.
302 //
303 // Use: protected
304
305 void
306 SoIndexedNurbsCurvecxx . . $ SoIndexedNurbsCurve#::generatePrimitivescxx . . $ SoIndexedNurbsCurve#generatePrimitives(967167263c8a77b7).(SoActioncxx . . $ SoAction# *action)
307 //
308 ////////////////////////////////////////////////////////////////////////
309 {
310 _SoNurbsPrimRendercxx . . $ _SoNurbsPrimRender# primRendercxx . . $ _SoNurbsPrimRender#_SoNurbsPrimRender(11873c6986b3b90c).(action, primCBcxx . . $ SoIndexedNurbsCurve#primCB(f480c718f025d970)., (void *)this);
311
312 //
313 // Find the number of steps required for tessellation and the pixel
314 // tolerance used for tessellation.
315 //
316 float val = SoComplexityElementcxx . . $ SoComplexityElement#::getcxx . . $ SoComplexityElement#get(ac74db52455d3e23).(action->getStatecxx . . $ SoAction#getState(5c8eb8fe6550a03).());
317
318 if (SoComplexityTypeElementcxx . . $ SoComplexityTypeElement#::getcxx . . $ SoComplexityTypeElement#get(f065841ab22bd7f0).(action->getStatecxx . . $ SoAction#getState(5c8eb8fe6550a03).()) ==
319 SoComplexityTypeElementcxx . . $ SoComplexityTypeElement#::OBJECT_SPACEcxx . . $ SoComplexityTypeElement#OBJECT_SPACE.)
320 {
321 //
322 // Set the nurbs properties to render the curve with uniform
323 // tessellation over the whole curve.
324 //
325 int steps;
326 if (val < 0.5) steps = (int)(18.0 *val) + 1;
327 else steps = (int)(380.0*val) - 180;
328
329 primRender.setnurbspropertycxx . . $ _SoNurbsNurbsTessellator#setnurbsproperty(796cb56005eb5818).( N_V3Dcxx . . $ `lib/database/src/so/nodes/nurbs/clients/gl4types.h:41:9`!, N_SAMPLINGMETHODcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:60:9`!,
330 N_FIXEDRATEcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:62:10`! );
331 primRender.setnurbspropertycxx . . $ _SoNurbsNurbsTessellator#setnurbsproperty(796cb56005eb5818).( N_V3DRcxx . . $ `lib/database/src/so/nodes/nurbs/clients/gl4types.h:42:9`!, N_SAMPLINGMETHODcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:60:9`!,
332 N_FIXEDRATEcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:62:10`! );
333 primRender.setnurbspropertycxx . . $ _SoNurbsNurbsTessellator#setnurbsproperty(796cb56005eb5818).( N_V3Dcxx . . $ `lib/database/src/so/nodes/nurbs/clients/gl4types.h:41:9`!, N_S_STEPScxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:103:9`!, steps);
334 primRender.setnurbspropertycxx . . $ _SoNurbsNurbsTessellator#setnurbsproperty(796cb56005eb5818).( N_V3Dcxx . . $ `lib/database/src/so/nodes/nurbs/clients/gl4types.h:41:9`!, N_T_STEPScxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:104:9`!, steps);
335 primRender.setnurbspropertycxx . . $ _SoNurbsNurbsTessellator#setnurbsproperty(796cb56005eb5818).( N_V3DRcxx . . $ `lib/database/src/so/nodes/nurbs/clients/gl4types.h:42:9`!, N_S_STEPScxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:103:9`!, steps);
336 primRender.setnurbspropertycxx . . $ _SoNurbsNurbsTessellator#setnurbsproperty(796cb56005eb5818).( N_V3DRcxx . . $ `lib/database/src/so/nodes/nurbs/clients/gl4types.h:42:9`!, N_T_STEPScxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:104:9`!, steps);
337 }
338 else
339 {
340 //
341 // Set the nurbs properties to render the curve with a view
342 // dependent tessellation using the given pixel tolerance.
343 //
344 float pixTolerance;
345
346 if (val < 0.10) pixTolerance = 10;
347 else if (val < 0.20) pixTolerance = 8;
348 else if (val < 0.30) pixTolerance = 6;
349 else if (val < 0.40) pixTolerance = 4;
350 else if (val < 0.50) pixTolerance = 2;
351 else if (val < 0.70) pixTolerance = 1;
352 else if (val < 0.80) pixTolerance = .5;
353 else if (val < 0.90) pixTolerance = .25;
354 else pixTolerance = .125;
355
356 primRender.setnurbspropertycxx . . $ _SoNurbsNurbsTessellator#setnurbsproperty(796cb56005eb5818).( N_V3Dcxx . . $ `lib/database/src/so/nodes/nurbs/clients/gl4types.h:41:9`!, N_SAMPLINGMETHODcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:60:9`!,
357 N_PARAMETRICDISTANCEcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:64:10`! );
358 primRender.setnurbspropertycxx . . $ _SoNurbsNurbsTessellator#setnurbsproperty(796cb56005eb5818).( N_V3DRcxx . . $ `lib/database/src/so/nodes/nurbs/clients/gl4types.h:42:9`!, N_SAMPLINGMETHODcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:60:9`!,
359 N_PARAMETRICDISTANCEcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:64:10`! );
360 primRender.setnurbspropertycxx . . $ _SoNurbsNurbsTessellator#setnurbsproperty(796cb56005eb5818).( N_V3Dcxx . . $ `lib/database/src/so/nodes/nurbs/clients/gl4types.h:41:9`!, N_PIXEL_TOLERANCEcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:93:9`!, pixTolerance );
361 primRender.setnurbspropertycxx . . $ _SoNurbsNurbsTessellator#setnurbsproperty(796cb56005eb5818).( N_V3DRcxx . . $ `lib/database/src/so/nodes/nurbs/clients/gl4types.h:42:9`!, N_PIXEL_TOLERANCEcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:93:9`!, pixTolerance );
362
363 //
364 // Calculate the total viewing matrix by concatenating the modeling
365 // matrix, the camera's viewing matrix, and the projection matrix.
366 // Pass the resulting matrix to the NURBS library for use in
367 // determining sampling and culling of the surface.
368 //
369 const SbViewportRegioncxx . . $ SbViewportRegion# & vpRegion =
370 SoViewportRegionElementcxx . . $ SoViewportRegionElement#::getcxx . . $ SoViewportRegionElement#get(862cff51521dc30e).(action->getStatecxx . . $ SoAction#getState(5c8eb8fe6550a03).());
371 const SbVec2scxx . . $ SbVec2s# & vpSize = vpRegion.getViewportSizePixelscxx . . $ SbViewportRegion#getViewportSizePixels(f469ede4e6b056fc).();
372 SbMatrixcxx . . $ SbMatrix# totalMatcxx . . $ SbMatrix#SbMatrix(49f6e7a06ebc5aa8).;
373 calcTotalMatrixcxx . . $ SoIndexedNurbsCurve#calcTotalMatrix(3ae54ab5ea5f8810). (action->getStatecxx . . $ SoAction#getState(5c8eb8fe6550a03).(), totalMat);
374 primRender.loadMatricescxx . . $ _SoNurbsPrimRender#loadMatrices(15d9bd587e4bdfee). (totalMat, vpSize);
375 }
376
377 //
378 // Draw the NURBS surface. The SoPrimRender class will receive primitive
379 // drawn by the NURBS library, triangulate them, and send them to the
380 // callback.
381 drawNURBScxx . . $ SoIndexedNurbsCurve#drawNURBS(51cb3ecc88036509).(&primRender, action->getStatecxx . . $ SoAction#getState(5c8eb8fe6550a03).());
382 }
383
384 ////////////////////////////////////////////////////////////////////////
385 //
386 // Description:
387 // Gets details back from the NURBS library and sends them to the
388 // generate primitive callbacks.
389 //
390 // Use: private, static
391
392 void
393 SoIndexedNurbsCurvecxx . . $ SoIndexedNurbsCurve#::primCBcxx . . $ SoIndexedNurbsCurve#primCB(f480c718f025d970).(
394 SoActioncxx . . $ SoAction# *act,
395 SoPrimitiveVertexcxx . . $ SoPrimitiveVertex# *vertices,
396 void *userData)
397
398 //
399 ////////////////////////////////////////////////////////////////////////
400 {
401 SoIndexedNurbsCurvecxx . . $ SoIndexedNurbsCurve# *curve = (SoIndexedNurbsCurvecxx . . $ SoIndexedNurbsCurve# *)userData;
402 curve->sendPrimitivecxx . . $ SoIndexedNurbsCurve#sendPrimitive(d265f7c023e2333b).(act, vertices);
403 }
404
405 ////////////////////////////////////////////////////////////////////////
406 //
407 // Description:
408 // Sends primitives to the generate primitive callbacks.
409 //
410 // Use: internal, public
411
412 void
413 SoIndexedNurbsCurvecxx . . $ SoIndexedNurbsCurve#::sendPrimitivecxx . . $ SoIndexedNurbsCurve#sendPrimitive(d265f7c023e2333b).(
414 SoActioncxx . . $ SoAction# *act,
415 SoPrimitiveVertexcxx . . $ SoPrimitiveVertex# *vertices )
416
417 //
418 ////////////////////////////////////////////////////////////////////////
419 {
420 invokeLineSegmentCallbackscxx . . $ SoShape#invokeLineSegmentCallbacks(268c546d726bcd24).(act, &vertices[0], &vertices[1]);
421 }
422
423 ////////////////////////////////////////////////////////////////////////
424 //
425 // Description:
426 // Redefines this to tell open caches that they contain lines.
427 //
428 // Use: extender
429
430 void
431 SoIndexedNurbsCurvecxx . . $ SoIndexedNurbsCurve#::getBoundingBoxcxx . . $ SoIndexedNurbsCurve#getBoundingBox(dd7d7d7c2dd56aae).(SoGetBoundingBoxActioncxx . . $ SoGetBoundingBoxAction# *action)
432 //
433 ////////////////////////////////////////////////////////////////////////
434 {
435 // Let our parent class do the real work
436 SoShapecxx . . $ SoShape#::getBoundingBoxcxx . . $ SoShape#getBoundingBox(dd7d7d7c2dd56aae).(action);
437
438 // If there are any open bounding box caches, tell them that they
439 // contain lines
440 SoBoundingBoxCachecxx . . $ SoBoundingBoxCache#::setHasLinesOrPointscxx . . $ SoBoundingBoxCache#setHasLinesOrPoints(10e5c4d2a7f63e3e).(action->getStatecxx . . $ SoAction#getState(5c8eb8fe6550a03).());
441 }
442
443 ////////////////////////////////////////////////////////////////////////
444 //
445 // Description:
446 // Computes bounding box for the NURBS curve.
447 //
448 // Use: protected
449
450 void
451 SoIndexedNurbsCurvecxx . . $ SoIndexedNurbsCurve#::computeBBoxcxx . . $ SoIndexedNurbsCurve#computeBBox(263a5bbe2b28e9a1).(SoActioncxx . . $ SoAction# *action,
452 SbBox3fcxx . . $ SbBox3f# &box, SbVec3fcxx . . $ SbVec3f# &center)
453 //
454 ////////////////////////////////////////////////////////////////////////
455 {
456 const SoCoordinateElementcxx . . $ SoCoordinateElement# *ce =
457 SoCoordinateElementcxx . . $ SoCoordinateElement#::getInstancecxx . . $ SoCoordinateElement#getInstance(297609619ca4e687).(action->getStatecxx . . $ SoAction#getState(5c8eb8fe6550a03).());
458 const int32_t *coordIndices;
459 int32_t numCoordIndices;
460 int i;
461
462 numCoordIndices = coordIndexcxx . . $ SoIndexedNurbsCurve#coordIndex..getNumcxx . . $ SoMField#getNum(455f465bc33b4cdf).();
463
464 // Check for a degenerate curve
465 if (numCoordIndices == 0)
466 return;
467
468 //
469 // Loop through coordinates, keeping max bounding box and sum of coords
470 // If the coordinates are rational, divide the first three values by
471 // the fourth value before extending the bounding box.
472 //
473 coordIndices = coordIndexcxx . . $ SoIndexedNurbsCurve#coordIndex..getValuescxx . . $ SoMFInt32#getValues(7547fac9af83ee5e).(0);
474 center.setValuecxx . . $ SbVec3f#setValue(4e87f9d875f2d08d).(0.0, 0.0, 0.0);
475 if (ce->is3Dcxx . . $ SoCoordinateElement#is3D(455f465bc33b4cdf).()) {
476 for (i=0; i<numCoordIndices; i++)
477 {
478 const SbVec3fcxx . . $ SbVec3f# &coord = ce->get3cxx . . $ SoCoordinateElement#get3(e550528ef0703ba8).((int)coordIndices[i]);
479 box.extendBycxx . . $ SbBox3f#extendBy(65a601b9d70571d6).(coord);
480 center +=cxx . . $ SbVec3f#`operator+=`(13422326b1abca17). coord;
481 }
482 }
483 else {
484 SbVec3fcxx . . $ SbVec3f# tmpCoordcxx . . $ SbVec3f#SbVec3f(49f6e7a06ebc5aa8).;
485 for (i=0; i<numCoordIndices; i++)
486 {
487 const SbVec4fcxx . . $ SbVec4f# &coord = ce->get4cxx . . $ SoCoordinateElement#get4(3310a33e8a5c005).((int)coordIndices[i]);
488 coord.getRealcxx . . $ SbVec4f#getReal(1ff30bbe70e7839c).(tmpCoord);
489 box.extendBycxx . . $ SbBox3f#extendBy(65a601b9d70571d6).(tmpCoord);
490 center +=cxx . . $ SbVec3f#`operator+=`(13422326b1abca17). tmpCoord;
491 }
492 }
493
494 center /=cxx . . $ SbVec3f#`operator/=`(3aaca777b5795e29). (float) numCoordIndices;
495 }
496
497
498 ////////////////////////////////////////////////////////////////////////
499 //
500 // Description:
501 // Draws the NURBS curve.
502 //
503 // Use: protected
504
505 void
506 SoIndexedNurbsCurvecxx . . $ SoIndexedNurbsCurve#::drawNURBScxx . . $ SoIndexedNurbsCurve#drawNURBS(51cb3ecc88036509).(
507 _SoNurbsNurbsTessellatorcxx . . $ _SoNurbsNurbsTessellator# *render,
508 SoStatecxx . . $ SoState# *state )
509
510 //
511 ////////////////////////////////////////////////////////////////////////
512 {
513 const SoCoordinateElementcxx . . $ SoCoordinateElement# *ce =
514 SoCoordinateElementcxx . . $ SoCoordinateElement#::getInstancecxx . . $ SoCoordinateElement#getInstance(297609619ca4e687).(state);
515 const int32_t *coordIndices;
516 int32_t numCoordIndices;
517 int32_t type, offset;
518 float *coords;
519 int i;
520
521 numCoordIndices = coordIndexcxx . . $ SoIndexedNurbsCurve#coordIndex..getNumcxx . . $ SoMField#getNum(455f465bc33b4cdf).();
522
523 // Check for a degenerate curve
524 if (numCoordIndices == 0)
525 return;
526
527 //
528 // Get the array of control points. Check to see if they are
529 // non-rational or rational.
530 //
531 coordIndices = coordIndexcxx . . $ SoIndexedNurbsCurve#coordIndex..getValuescxx . . $ SoMFInt32#getValues(7547fac9af83ee5e).(0);
532 if (ce->is3Dcxx . . $ SoCoordinateElement#is3D(455f465bc33b4cdf).()) {
533 coords = new float[3*numCoordIndices];
534 float *tmpCoord = coords;
535 for (i=0; i<numCoordIndices; i++)
536 {
537 const SbVec3fcxx . . $ SbVec3f# &c3 = ce->get3cxx . . $ SoCoordinateElement#get3(e550528ef0703ba8).((int)coordIndices[i]);
538 *tmpCoord++ = c3[cxx . . $ SbVec3f#`operator[]`(c60a38c584b9a5cc).0];
539 *tmpCoord++ = c3[cxx . . $ SbVec3f#`operator[]`(c60a38c584b9a5cc).1];
540 *tmpCoord++ = c3[cxx . . $ SbVec3f#`operator[]`(c60a38c584b9a5cc).2];
541 }
542 offset = 3 * sizeof(float);
543 type = N_V3Dcxx . . $ `lib/database/src/so/nodes/nurbs/clients/gl4types.h:41:9`!;
544 }
545 else {
546 coords = new float[4*numCoordIndices];
547 float *tmpCoord = coords;
548 for (i=0; i<numCoordIndices; i++)
549 {
550 const SbVec4fcxx . . $ SbVec4f# &c4 = ce->get4cxx . . $ SoCoordinateElement#get4(3310a33e8a5c005).((int)coordIndices[i]);
551 *tmpCoord++ = c4[cxx . . $ SbVec4f#`operator[]`(c60a38c584b9a5cc).0];
552 *tmpCoord++ = c4[cxx . . $ SbVec4f#`operator[]`(c60a38c584b9a5cc).1];
553 *tmpCoord++ = c4[cxx . . $ SbVec4f#`operator[]`(c60a38c584b9a5cc).2];
554 *tmpCoord++ = c4[cxx . . $ SbVec4f#`operator[]`(c60a38c584b9a5cc).3];
555 }
556 offset = 4 * sizeof(float);
557 type = N_V3DRcxx . . $ `lib/database/src/so/nodes/nurbs/clients/gl4types.h:42:9`!;
558 }
559
560 //
561 // Render the NURBS curve as if to the GL, but use the given
562 // NurbsTessellator instead which will make calls to the
563 // software NURBS library.
564 //
565 render->bgncurvecxx . . $ _SoNurbsNurbsTessellator#bgncurve(1624ee8275b10bda).(0);
566 render->nurbscurvecxx . . $ _SoNurbsNurbsTessellator#nurbscurve(68c443770fef4d8f). (knotVectorcxx . . $ SoIndexedNurbsCurve#knotVector..getNumcxx . . $ SoMField#getNum(455f465bc33b4cdf).(),
567 (INREALcxx . . $ `lib/database/src/so/nodes/nurbs/head/types.h:46:9`! *) knotVectorcxx . . $ SoIndexedNurbsCurve#knotVector..getValuescxx . . $ SoMFFloat#getValues(bab6c6b0b673bcf).(0),
568 offset, (INREALcxx . . $ `lib/database/src/so/nodes/nurbs/head/types.h:46:9`! *)coords,
569 knotVectorcxx . . $ SoIndexedNurbsCurve#knotVector..getNumcxx . . $ SoMField#getNum(455f465bc33b4cdf).() - numControlPointscxx . . $ SoIndexedNurbsCurve#numControlPoints..getValuecxx . . $ SoSFInt32#getValue(455f465bc33b4cdf).(),
570 type);
571
572 render->endcurvecxx . . $ _SoNurbsNurbsTessellator#endcurve(49f6e7a06ebc5aa8).();
573 delete[] coords;
574 }
575
576 ////////////////////////////////////////////////////////////////////////
577 //
578 // Description:
579 // Calculate the total transformation matrix by contatenating the
580 // modeling matrix, the camera's viewing matrix, and the projection
581 // matrix all together.
582 //
583 // Use: protected
584
585 void
586 SoIndexedNurbsCurvecxx . . $ SoIndexedNurbsCurve#::calcTotalMatrixcxx . . $ SoIndexedNurbsCurve#calcTotalMatrix(3ae54ab5ea5f8810).(
587 SoStatecxx . . $ SoState# *state,
588 SbMatrixcxx . . $ SbMatrix# &totalMat )
589
590 //
591 ////////////////////////////////////////////////////////////////////////
592 {
593 SbMatrixcxx . . $ SbMatrix# mMatcxx . . $ SbMatrix#SbMatrix(49f6e7a06ebc5aa8)., pMatcxx . . $ SbMatrix#SbMatrix(49f6e7a06ebc5aa8)., vMatcxx . . $ SbMatrix#SbMatrix(49f6e7a06ebc5aa8).;
594 SbMatrixcxx . . $ SbMatrix# viewMatcxx . . $ SbMatrix#SbMatrix(49f6e7a06ebc5aa8).;
595
596 mMat =cxx . . $ SbMatrix#`operator=`(5bda0b2cfca989a9). SoModelMatrixElementcxx . . $ SoModelMatrixElement#::getcxx . . $ SoModelMatrixElement#get(361591dce4cd33b0). (state);
597 pMat =cxx . . $ SbMatrix#`operator=`(5bda0b2cfca989a9). SoProjectionMatrixElementcxx . . $ SoProjectionMatrixElement#::getcxx . . $ SoProjectionMatrixElement#get(361591dce4cd33b0). (state);
598 vMat =cxx . . $ SbMatrix#`operator=`(5bda0b2cfca989a9). SoViewingMatrixElementcxx . . $ SoViewingMatrixElement#::getcxx . . $ SoViewingMatrixElement#get(361591dce4cd33b0). (state);
599 multMatrix4dcxx . . $ SoIndexedNurbsCurve#multMatrix4d(37eb89ba643f09e9). (viewMat, mMat, vMat);
600 multMatrix4dcxx . . $ SoIndexedNurbsCurve#multMatrix4d(37eb89ba643f09e9). (totalMat, viewMat, pMat);
601 }
602
603
604
605 ////////////////////////////////////////////////////////////////////////
606 //
607 // Description:
608 // Multiply two matrices together.
609 // new = [left][right]
610 //
611 // Use: protected
612
613 void
614 SoIndexedNurbsCurvecxx . . $ SoIndexedNurbsCurve#::multMatrix4dcxx . . $ SoIndexedNurbsCurve#multMatrix4d(37eb89ba643f09e9). (
615 SbMatrixcxx . . $ SbMatrix# &n,
616 SbMatrixcxx . . $ SbMatrix# left,
617 SbMatrixcxx . . $ SbMatrix# right )
618
619 //
620 ////////////////////////////////////////////////////////////////////////
621 {
622 int i;
623
624 for (i=0; i<4; i++)
625 {
626 n[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).i][0] = left[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).i][0]*right[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).0][0] + left[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).i][1]*right[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).1][0] +
627 left[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).i][2]*right[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).2][0] + left[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).i][3]*right[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).3][0];
628 n[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).i][1] = left[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).i][0]*right[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).0][1] + left[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).i][1]*right[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).1][1] +
629 left[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).i][2]*right[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).2][1] + left[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).i][3]*right[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).3][1];
630 n[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).i][2] = left[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).i][0]*right[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).0][2] + left[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).i][1]*right[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).1][2] +
631 left[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).i][2]*right[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).2][2] + left[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).i][3]*right[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).3][2];
632 n[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).i][3] = left[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).i][0]*right[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).0][3] + left[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).i][1]*right[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).1][3] +
633 left[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).i][2]*right[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).2][3] + left[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).i][3]*right[cxx . . $ SbMatrix#`operator[]`(14bcf4d013640fef).3][3];
634 }
635 }