Debian Codegraph @

lib/database/src/so/nodes/nurbs/libnurbs/quilt.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 * quilt.c++ - $Revision: 1.1.1.1 $
39 * Derrick Burns - 1991
40 */
41
42 #include "glimports.h"cxx . . $ `<file>/lib/database/src/so/nodes/nurbs/head/glimports.h`/
43 #include "mystdio.h"cxx . . $ `<file>/lib/database/src/so/nodes/nurbs/head/mystdio.h`/
44 #include "myassert.h"cxx . . $ `<file>/lib/database/src/so/nodes/nurbs/head/myassert.h`/
45 #include "quilt.h"cxx . . $ `<file>/lib/database/src/so/nodes/nurbs/head/quilt.h`/
46 #include "backend.h"cxx . . $ `<file>/lib/database/src/so/nodes/nurbs/head/backend.h`/
47 #include "mapdesc.h"cxx . . $ `<file>/lib/database/src/so/nodes/nurbs/head/mapdesc.h`/
48 #include "flist.h"cxx . . $ `<file>/lib/database/src/so/nodes/nurbs/head/flist.h`/
49 #include "knotvector.h"cxx . . $ `<file>/lib/database/src/so/nodes/nurbs/head/knotvector.h`/
50 #include "patchlist.h"cxx . . $ `<file>/lib/database/src/so/nodes/nurbs/head/patchlist.h`/
51 #include <cmath> //fabs()
52 #include "simplemath.h"cxx . . $ `<file>/lib/database/src/so/nodes/nurbs/head/simplemath.h`/ //min()
53
54 /* local preprocessor definitions */
55 #define DEF_PATCH_STEPSIZEcxx . . $ `lib/database/src/so/nodes/nurbs/libnurbs/quilt.c++:55:9`! .2
56 #define fsizeofcxx . . $ `lib/database/src/so/nodes/nurbs/libnurbs/quilt.c++:56:9`!(x) (sizeof(x)/sizeof(REAL))
57
58
59 Quiltcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:88:9`!::Quiltcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:88:9`!( Mapdesccxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:68:9`! *_mapdesc )
60 {
61 mapdesccxx . . $ _SoNurbsQuilt#mapdesc. = _mapdesc;
62 }
63
64 void
65 Quiltcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:88:9`!::deleteMecxx . . $ _SoNurbsQuilt#deleteMe(51168daed7a327f6).( Poolcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:82:9`!& p )
66 {
67 for( Quiltspeccxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:89:9`! *q=qspeccxx . . $ _SoNurbsQuilt#qspec.; q != eqspeccxx . . $ _SoNurbsQuilt#eqspec.; q++ ) {
68 #if 1
69 if( q->breakpointscxx . . $ _SoNurbsQuiltspec#breakpoints.) delete[] q->breakpointscxx . . $ _SoNurbsQuiltspec#breakpoints.; q->breakpointscxx . . $ _SoNurbsQuiltspec#breakpoints. = 0;
70 #else
71 if( q->breakpoints) {
72 delete[] q->breakpoints;
73 q->breakpoints = 0;
74 printf("in here\n");
75 }
76 #endif
77 }
78 if( cptscxx . . $ _SoNurbsQuilt#cpts. ) delete[] cptscxx . . $ _SoNurbsQuilt#cpts.;
79 cptscxx . . $ _SoNurbsQuilt#cpts. = 0;
80 PooledObjcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:83:9`!::deleteMecxx . . $ _SoNurbsPooledObj#deleteMe(51168daed7a327f6).( p );
81 }
82
83 void
84 Quiltcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:88:9`!::showcxx . . $ _SoNurbsQuilt#show(49f6e7a06ebc5aa8).( void )
85 {
86 #ifndef NDEBUGcxx . . $ `<built-in>:440:9`!
87 int nc = mapdesc->getNcoords();
88 REAL *ps = cpts;
89 ps += qspec[0].offset;
90 ps += qspec[1].offset;
91 for( int i=0; i!= qspec[0].order * qspec[0].width; i++ ) {
92 for( int j = 0; j!= qspec[1].order * qspec[1].width; j++ ) {
93 for( int k=0; k < nc; k++ )
94 dprintf( "%g ", ps[i*qspec[0].stride + j*qspec[1].stride + k] );
95 dprintf( "\n" );
96 }
97 dprintf( "\n" );
98 }
99 dprintf( "\n" );
100 #endif
101 }
102
103 /*--------------------------------------------------------------------------
104 * Quilt::select - find which map in each quilt contains the points
105 * pta and ptb with pta[i] < ptb[i]
106 *--------------------------------------------------------------------------
107 */
108
109 void
110 Quiltcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:88:9`!::selectcxx . . $ _SoNurbsQuilt#select(abb9d6b01b35f6ff).( REALcxx . . $ REAL# *pta, REALcxx . . $ REAL# *ptb )
111 {
112 int dim = eqspeccxx . . $ _SoNurbsQuilt#eqspec. - qspeccxx . . $ _SoNurbsQuilt#qspec.;
113 for( int i=0; i<dim; i++) {
114 int j;
115 for( j=qspeccxx . . $ _SoNurbsQuilt#qspec.[i].widthcxx . . $ _SoNurbsQuiltspec#width.-1; j>=0; j-- )
116 if( (qspeccxx . . $ _SoNurbsQuilt#qspec.[i].breakpointscxx . . $ _SoNurbsQuiltspec#breakpoints.[j] <= pta[i] ) &&
117 (ptb[i] <= qspeccxx . . $ _SoNurbsQuilt#qspec.[i].breakpointscxx . . $ _SoNurbsQuiltspec#breakpoints.[j+1] ) )
118 break;
119 assertcxx . . $ `/usr/include/assert.h:50:10`!( j != -1 );
120 qspeccxx . . $ _SoNurbsQuilt#qspec.[i].indexcxx . . $ _SoNurbsQuiltspec#index. = j;
121 }
122 }
123
124 void
125 Quiltcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:88:9`!::downloadcxx . . $ _SoNurbsQuilt#download(8289e54500eb6aad).( Backendcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:42:9`! &backend )
126 {
127 if( getDimensioncxx . . $ _SoNurbsQuilt#getDimension(b126dc7c1de90089).() == 2 ) {
128 REALcxx . . $ REAL# *ps = cptscxx . . $ _SoNurbsQuilt#cpts.;
129 ps += qspeccxx . . $ _SoNurbsQuilt#qspec.[0].offsetcxx . . $ _SoNurbsQuiltspec#offset.;
130 ps += qspeccxx . . $ _SoNurbsQuilt#qspec.[1].offsetcxx . . $ _SoNurbsQuiltspec#offset.;
131 ps += qspeccxx . . $ _SoNurbsQuilt#qspec.[0].indexcxx . . $ _SoNurbsQuiltspec#index. * qspeccxx . . $ _SoNurbsQuilt#qspec.[0].ordercxx . . $ _SoNurbsQuiltspec#order. * qspeccxx . . $ _SoNurbsQuilt#qspec.[0].stridecxx . . $ _SoNurbsQuiltspec#stride.;
132 ps += qspeccxx . . $ _SoNurbsQuilt#qspec.[1].indexcxx . . $ _SoNurbsQuiltspec#index. * qspeccxx . . $ _SoNurbsQuilt#qspec.[1].ordercxx . . $ _SoNurbsQuiltspec#order. * qspeccxx . . $ _SoNurbsQuilt#qspec.[1].stridecxx . . $ _SoNurbsQuiltspec#stride.;
133 backend.surfptscxx . . $ _SoNurbsBackend#surfpts(d1d173dc65d6439c).( mapdesccxx . . $ _SoNurbsQuilt#mapdesc.->getTypecxx . . $ _SoNurbsMapdesc#getType(da6335ded91d79c2).(), ps,
134 qspeccxx . . $ _SoNurbsQuilt#qspec.[0].stridecxx . . $ _SoNurbsQuiltspec#stride.,
135 qspeccxx . . $ _SoNurbsQuilt#qspec.[1].stridecxx . . $ _SoNurbsQuiltspec#stride.,
136 qspeccxx . . $ _SoNurbsQuilt#qspec.[0].ordercxx . . $ _SoNurbsQuiltspec#order.,
137 qspeccxx . . $ _SoNurbsQuilt#qspec.[1].ordercxx . . $ _SoNurbsQuiltspec#order.,
138 qspeccxx . . $ _SoNurbsQuilt#qspec.[0].breakpointscxx . . $ _SoNurbsQuiltspec#breakpoints.[qspeccxx . . $ _SoNurbsQuilt#qspec.[0].indexcxx . . $ _SoNurbsQuiltspec#index.],
139 qspeccxx . . $ _SoNurbsQuilt#qspec.[0].breakpointscxx . . $ _SoNurbsQuiltspec#breakpoints.[qspeccxx . . $ _SoNurbsQuilt#qspec.[0].indexcxx . . $ _SoNurbsQuiltspec#index.+1],
140 qspeccxx . . $ _SoNurbsQuilt#qspec.[1].breakpointscxx . . $ _SoNurbsQuiltspec#breakpoints.[qspeccxx . . $ _SoNurbsQuilt#qspec.[1].indexcxx . . $ _SoNurbsQuiltspec#index.],
141 qspeccxx . . $ _SoNurbsQuilt#qspec.[1].breakpointscxx . . $ _SoNurbsQuiltspec#breakpoints.[qspeccxx . . $ _SoNurbsQuilt#qspec.[1].indexcxx . . $ _SoNurbsQuiltspec#index.+1] );
142 } else {
143 REALcxx . . $ REAL# *ps = cptscxx . . $ _SoNurbsQuilt#cpts.;
144 ps += qspeccxx . . $ _SoNurbsQuilt#qspec.[0].offsetcxx . . $ _SoNurbsQuiltspec#offset.;
145 ps += qspeccxx . . $ _SoNurbsQuilt#qspec.[0].indexcxx . . $ _SoNurbsQuiltspec#index. * qspeccxx . . $ _SoNurbsQuilt#qspec.[0].ordercxx . . $ _SoNurbsQuiltspec#order. * qspeccxx . . $ _SoNurbsQuilt#qspec.[0].stridecxx . . $ _SoNurbsQuiltspec#stride.;
146 backend.curvptscxx . . $ _SoNurbsBackend#curvpts(3e876dde8859f556).( mapdesccxx . . $ _SoNurbsQuilt#mapdesc.->getTypecxx . . $ _SoNurbsMapdesc#getType(da6335ded91d79c2).(), ps,
147 qspeccxx . . $ _SoNurbsQuilt#qspec.[0].stridecxx . . $ _SoNurbsQuiltspec#stride.,
148 qspeccxx . . $ _SoNurbsQuilt#qspec.[0].ordercxx . . $ _SoNurbsQuiltspec#order.,
149 qspeccxx . . $ _SoNurbsQuilt#qspec.[0].breakpointscxx . . $ _SoNurbsQuiltspec#breakpoints.[qspeccxx . . $ _SoNurbsQuilt#qspec.[0].indexcxx . . $ _SoNurbsQuiltspec#index.],
150 qspeccxx . . $ _SoNurbsQuilt#qspec.[0].breakpointscxx . . $ _SoNurbsQuiltspec#breakpoints.[qspeccxx . . $ _SoNurbsQuilt#qspec.[0].indexcxx . . $ _SoNurbsQuiltspec#index.+1] );
151 }
152 }
153
154 /*--------------------------------------------------------------------------
155 * Quilt::downloadAll - download each map that contains the current patch
156 *--------------------------------------------------------------------------
157 */
158
159 void
160 Quiltcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:88:9`!::downloadAllcxx . . $ _SoNurbsQuilt#downloadAll(391eb9a292ef1ad1).( REALcxx . . $ REAL# *pta, REALcxx . . $ REAL# *ptb, Backendcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:42:9`! &backend )
161 {
162 for( Quiltcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:88:9`! *m = this; m; m=m->nextcxx . . $ _SoNurbsQuilt#next. ) {
163 m->selectcxx . . $ _SoNurbsQuilt#select(abb9d6b01b35f6ff).( pta, ptb );
164 m->downloadcxx . . $ _SoNurbsQuilt#download(8289e54500eb6aad).( backend );
165 }
166 }
167
168 /*--------------------------------------------------------------------------
169 * Quilt::isCulled - determine if an entire quilt is trivially rejected.
170 *--------------------------------------------------------------------------
171 */
172
173 int
174 Quiltcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:88:9`!::isCulledcxx . . $ _SoNurbsQuilt#isCulled(b126dc7c1de90089).( void )
175 {
176 if( mapdesccxx . . $ _SoNurbsQuilt#mapdesc.->isCullingcxx . . $ _SoNurbsMapdesc#isCulling(b126dc7c1de90089).() )
177 return mapdesccxx . . $ _SoNurbsQuilt#mapdesc.->xformAndCullCheckcxx . . $ _SoNurbsMapdesc#xformAndCullCheck(d6111272ddfbbcd2).( cptscxx . . $ _SoNurbsQuilt#cpts. + qspeccxx . . $ _SoNurbsQuilt#qspec.[0].offsetcxx . . $ _SoNurbsQuiltspec#offset. + qspeccxx . . $ _SoNurbsQuilt#qspec.[1].offsetcxx . . $ _SoNurbsQuiltspec#offset.,
178 qspeccxx . . $ _SoNurbsQuilt#qspec.[0].ordercxx . . $ _SoNurbsQuiltspec#order. * qspeccxx . . $ _SoNurbsQuilt#qspec.[0].widthcxx . . $ _SoNurbsQuiltspec#width., qspeccxx . . $ _SoNurbsQuilt#qspec.[0].stridecxx . . $ _SoNurbsQuiltspec#stride.,
179 qspeccxx . . $ _SoNurbsQuilt#qspec.[1].ordercxx . . $ _SoNurbsQuiltspec#order. * qspeccxx . . $ _SoNurbsQuilt#qspec.[1].widthcxx . . $ _SoNurbsQuiltspec#width., qspeccxx . . $ _SoNurbsQuilt#qspec.[1].stridecxx . . $ _SoNurbsQuiltspec#stride. );
180 else
181 return CULL_ACCEPTcxx . . $ `lib/database/src/so/nodes/nurbs/head/defines.h:49:9`!;
182 }
183
184 /*---------------------------------------------------------------------------
185 * Quilt::getRange - retrieve the valid paramater range of a set of quilts
186 *---------------------------------------------------------------------------
187 */
188 void
189 Quiltcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:88:9`!::getRangecxx . . $ _SoNurbsQuilt#getRange(60fc9c726b9517a3).( REALcxx . . $ REAL# *from, REALcxx . . $ REAL# *to, Flistcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:57:9`!& slist, Flistcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:57:9`! &tlist )
190 {
191 getRangecxx . . $ _SoNurbsQuilt#getRange(95912e563c4d8f76).( from, to, 0, slist );
192 getRangecxx . . $ _SoNurbsQuilt#getRange(95912e563c4d8f76).( from, to, 1, tlist );
193 }
194
195 /*---------------------------------------------------------------------------
196 * Quilt::getRange - retrieve the valid paramater range of a set of quilts
197 *---------------------------------------------------------------------------
198 */
199 void
200 Quiltcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:88:9`!::getRangecxx . . $ _SoNurbsQuilt#getRange(95912e563c4d8f76).( REALcxx . . $ REAL# *from, REALcxx . . $ REAL# *to, int i, Flistcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:57:9`! &list )
201 {
202 Quiltcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:88:9`! *maps = this;
203 from[i] = maps->qspeccxx . . $ _SoNurbsQuilt#qspec.[i].breakpointscxx . . $ _SoNurbsQuiltspec#breakpoints.[0];
204 to[i] = maps->qspeccxx . . $ _SoNurbsQuilt#qspec.[i].breakpointscxx . . $ _SoNurbsQuiltspec#breakpoints.[maps->qspeccxx . . $ _SoNurbsQuilt#qspec.[i].widthcxx . . $ _SoNurbsQuiltspec#width.];
205 int maxpts = 0;
206 Quilt_ptrcxx . . $ Quilt_ptr# m;
207 for( m=maps; m; m=m->nextcxx . . $ _SoNurbsQuilt#next. ) {
208 if( m->qspeccxx . . $ _SoNurbsQuilt#qspec.[i].breakpointscxx . . $ _SoNurbsQuiltspec#breakpoints.[0] > from[i] )
209 from[i] = m->qspeccxx . . $ _SoNurbsQuilt#qspec.[i].breakpointscxx . . $ _SoNurbsQuiltspec#breakpoints.[0];
210 if( m->qspeccxx . . $ _SoNurbsQuilt#qspec.[i].breakpointscxx . . $ _SoNurbsQuiltspec#breakpoints.[m->qspeccxx . . $ _SoNurbsQuilt#qspec.[i].widthcxx . . $ _SoNurbsQuiltspec#width.] < to[i] )
211 to[i] = m->qspeccxx . . $ _SoNurbsQuilt#qspec.[i].breakpointscxx . . $ _SoNurbsQuiltspec#breakpoints.[m->qspeccxx . . $ _SoNurbsQuilt#qspec.[i].widthcxx . . $ _SoNurbsQuiltspec#width.];
212 maxpts += m->qspeccxx . . $ _SoNurbsQuilt#qspec.[i].widthcxx . . $ _SoNurbsQuiltspec#width. + 1;
213 }
214
215 list.growcxx . . $ _SoNurbsFlist#grow(d4f767463ce0a6b3).( maxpts );
216
217 for( m=maps; m; m=m->nextcxx . . $ _SoNurbsQuilt#next. )
218 for( int j=0; j<=m->qspeccxx . . $ _SoNurbsQuilt#qspec.[i].widthcxx . . $ _SoNurbsQuiltspec#width.; j++ ) {
219 list.addcxx . . $ _SoNurbsFlist#add(9364e6e7bff7660).( m->qspeccxx . . $ _SoNurbsQuilt#qspec.[i].breakpointscxx . . $ _SoNurbsQuiltspec#breakpoints.[j] );
220 }
221
222 list.filtercxx . . $ _SoNurbsFlist#filter(49f6e7a06ebc5aa8).( );
223 list.tapercxx . . $ _SoNurbsFlist#taper(5102ef758adc0ae7).( from[i], to[i] );
224 }
225
226 void
227 Quiltcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:88:9`!::getRangecxx . . $ _SoNurbsQuilt#getRange(2a734766ebca0ae3).( REALcxx . . $ REAL# *from, REALcxx . . $ REAL# *to, Flistcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:57:9`!& slist )
228 {
229 getRangecxx . . $ _SoNurbsQuilt#getRange(95912e563c4d8f76).( from, to, 0, slist );
230 }
231
232 void
233 Quiltcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:88:9`!::findRatescxx . . $ _SoNurbsQuilt#findRates(4ff33cc1d41c8f69).( Flistcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:57:9`!& slist, Flistcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:57:9`!& tlist, REALcxx . . $ REAL# rate[2] )
234 {
235 findSampleRatescxx . . $ _SoNurbsQuilt#findSampleRates(b39355a97625ecee).( slist, tlist );
236 rate[0] = qspeccxx . . $ _SoNurbsQuilt#qspec.[0].step_sizecxx . . $ _SoNurbsQuiltspec#step_size.;
237 rate[1] = qspeccxx . . $ _SoNurbsQuilt#qspec.[1].step_sizecxx . . $ _SoNurbsQuiltspec#step_size.;
238
239 for( Quiltcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:88:9`! *q = nextcxx . . $ _SoNurbsQuilt#next.; q; q = q->nextcxx . . $ _SoNurbsQuilt#next. ) {
240 q->findSampleRatescxx . . $ _SoNurbsQuilt#findSampleRates(b39355a97625ecee).( slist, tlist );
241 if( q->qspeccxx . . $ _SoNurbsQuilt#qspec.[0].step_sizecxx . . $ _SoNurbsQuiltspec#step_size. < rate[0] )
242 rate[0] = q->qspeccxx . . $ _SoNurbsQuilt#qspec.[0].step_sizecxx . . $ _SoNurbsQuiltspec#step_size.;
243 if( q->qspeccxx . . $ _SoNurbsQuilt#qspec.[1].step_sizecxx . . $ _SoNurbsQuiltspec#step_size. < rate[1] )
244 rate[1] = q->qspeccxx . . $ _SoNurbsQuilt#qspec.[1].step_sizecxx . . $ _SoNurbsQuiltspec#step_size.;
245 }
246 }
247
248 void
249 Quiltcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:88:9`!::findSampleRatescxx . . $ _SoNurbsQuilt#findSampleRates(b39355a97625ecee).( Flistcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:57:9`!& slist, Flistcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:57:9`!& tlist )
250 {
251 qspeccxx . . $ _SoNurbsQuilt#qspec.[0].step_sizecxx . . $ _SoNurbsQuiltspec#step_size. = DEF_PATCH_STEPSIZEcxx . . $ `lib/database/src/so/nodes/nurbs/libnurbs/quilt.c++:55:9`! *
252 (qspeccxx . . $ _SoNurbsQuilt#qspec.[0].breakpointscxx . . $ _SoNurbsQuiltspec#breakpoints.[qspeccxx . . $ _SoNurbsQuilt#qspec.[0].widthcxx . . $ _SoNurbsQuiltspec#width.] - qspeccxx . . $ _SoNurbsQuilt#qspec.[0].breakpointscxx . . $ _SoNurbsQuiltspec#breakpoints.[0]);
253 qspeccxx . . $ _SoNurbsQuilt#qspec.[1].step_sizecxx . . $ _SoNurbsQuiltspec#step_size. = DEF_PATCH_STEPSIZEcxx . . $ `lib/database/src/so/nodes/nurbs/libnurbs/quilt.c++:55:9`! *
254 (qspeccxx . . $ _SoNurbsQuilt#qspec.[1].breakpointscxx . . $ _SoNurbsQuiltspec#breakpoints.[qspeccxx . . $ _SoNurbsQuilt#qspec.[1].widthcxx . . $ _SoNurbsQuiltspec#width.] - qspeccxx . . $ _SoNurbsQuilt#qspec.[1].breakpointscxx . . $ _SoNurbsQuiltspec#breakpoints.[0]);
255
256 for( int i = slist.startcxx . . $ _SoNurbsFlist#start.; i < slist.endcxx . . $ _SoNurbsFlist#end.-1; i++ ) {
257 for( int j = tlist.startcxx . . $ _SoNurbsFlist#start.; j < tlist.endcxx . . $ _SoNurbsFlist#end.-1; j++ ) {
258
259 REALcxx . . $ REAL# pta[2], ptb[2];
260 pta[0] = slist.ptscxx . . $ _SoNurbsFlist#pts.[i];
261 ptb[0] = slist.ptscxx . . $ _SoNurbsFlist#pts.[i+1];
262 pta[1] = tlist.ptscxx . . $ _SoNurbsFlist#pts.[j];
263 ptb[1] = tlist.ptscxx . . $ _SoNurbsFlist#pts.[j+1];
264 Patchlistcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:80:9`! patchlistcxx . . $ _SoNurbsPatchlist#_SoNurbsPatchlist(68f322f6e6c850a0).( this, pta, ptb );
265 patchlist.getstepsizecxx . . $ _SoNurbsPatchlist#getstepsize(49f6e7a06ebc5aa8).();
266
267 {
268 float edge_len_s = mincxx . . $ min(2a338fce5842aa6a).(float(fabs(ptb[0]-pta[0])),1.f);
269 float edge_len_t = mincxx . . $ min(2a338fce5842aa6a).(float(fabs(ptb[1]-pta[1])),1.f);
270
271 if( patchlist.getStepsizecxx . . $ _SoNurbsPatchlist#getStepsize(5cde91ea12d43f46).(0)/edge_len_s < qspeccxx . . $ _SoNurbsQuilt#qspec.[0].step_sizecxx . . $ _SoNurbsQuiltspec#step_size. )
272 qspeccxx . . $ _SoNurbsQuilt#qspec.[0].step_sizecxx . . $ _SoNurbsQuiltspec#step_size. = patchlist.getStepsizecxx . . $ _SoNurbsPatchlist#getStepsize(5cde91ea12d43f46).(0)/edge_len_s;
273 if( patchlist.getStepsizecxx . . $ _SoNurbsPatchlist#getStepsize(5cde91ea12d43f46).(1)/edge_len_t < qspeccxx . . $ _SoNurbsQuilt#qspec.[1].step_sizecxx . . $ _SoNurbsQuiltspec#step_size. )
274 qspeccxx . . $ _SoNurbsQuilt#qspec.[1].step_sizecxx . . $ _SoNurbsQuiltspec#step_size. = patchlist.getStepsizecxx . . $ _SoNurbsPatchlist#getStepsize(5cde91ea12d43f46).(1)/edge_len_t;
275 }
276 }
277 }
278 }