| 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 | * nurbsinterfac.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 "nurbsconsts.h"cxx . . $ `<file>/lib/database/src/so/nodes/nurbs/head/nurbsconsts.h`/ |
| 45 | #include "nurbstess.h"cxx . . $ `<file>/lib/database/src/so/nodes/nurbs/head/nurbstess.h`/ |
| 46 | #include "bufpool.h"cxx . . $ `<file>/lib/database/src/so/nodes/nurbs/head/bufpool.h`/ |
| 47 | #include "quilt.h"cxx . . $ `<file>/lib/database/src/so/nodes/nurbs/head/quilt.h`/ |
| 48 | #include "displaylist.h"cxx . . $ `<file>/lib/database/src/so/nodes/nurbs/head/displaylist.h`/ |
| 49 | #include "knotvector.h"cxx . . $ `<file>/lib/database/src/so/nodes/nurbs/head/knotvector.h`/ |
| 50 | #include "mapdesc.h"cxx . . $ `<file>/lib/database/src/so/nodes/nurbs/head/mapdesc.h`/ |
| 51 | |
| 52 | #define THREADcxx . . $ `lib/database/src/so/nodes/nurbs/libnurbs/nurbsinterfac.c++:52:9`!( work, arg, cleanup ) \ |
| 53 | if( dl ) {\ |
| 54 | arg->save = 1;\ |
| 55 | dl->append( (PFVS)&NurbsTessellatorcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:72:9`!::work, (void *) arg, (PFVS)&NurbsTessellatorcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:72:9`!::cleanup );\ |
| 56 | } else {\ |
| 57 | arg->save = 0;\ |
| 58 | work( arg );\ |
| 59 | } |
| 60 | |
| 61 | #define THREAD2cxx . . $ `lib/database/src/so/nodes/nurbs/libnurbs/nurbsinterfac.c++:61:9`!( work ) \ |
| 62 | if( dl ) {\ |
| 63 | dl->append( (PFVS)&NurbsTessellatorcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:72:9`!::work, 0, 0 );\ |
| 64 | } else {\ |
| 65 | work( );\ |
| 66 | } |
| 67 | |
| 68 | NurbsTessellatorcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:72:9`!::NurbsTessellatorcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:72:9`!( BasicCurveEvaluatorcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:43:9`! &c, BasicSurfaceEvaluatorcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:44:9`!& e) |
| 69 | : subdividercxx . . $ _SoNurbsNurbsTessellator#subdivider.( renderhintscxx . . $ _SoNurbsNurbsTessellator#renderhints., backendcxx . . $ _SoNurbsNurbsTessellator#backend. ), |
| 70 | backendcxx . . $ _SoNurbsNurbsTessellator#backend.( c, e ), |
| 71 | maplistcxx . . $ _SoNurbsNurbsTessellator#maplist.( backendcxx . . $ _SoNurbsNurbsTessellator#backend. ), |
| 72 | o_pwlcurvePoolcxx . . $ _SoNurbsNurbsTessellator#o_pwlcurvePool.( sizeof( O_pwlcurvecxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:76:9`! ), 32, "o_pwlcurvePool" ), |
| 73 | o_nurbscurvePoolcxx . . $ _SoNurbsNurbsTessellator#o_nurbscurvePool.( sizeof( O_nurbscurvecxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:74:9`! ), 32, "o_nurbscurvePool"), |
| 74 | o_curvePoolcxx . . $ _SoNurbsNurbsTessellator#o_curvePool.( sizeof( O_curvecxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:73:9`! ), 32, "o_curvePool" ), |
| 75 | o_trimPoolcxx . . $ _SoNurbsNurbsTessellator#o_trimPool.( sizeof( O_trimcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:78:9`! ), 32, "o_trimPool" ), |
| 76 | o_surfacePoolcxx . . $ _SoNurbsNurbsTessellator#o_surfacePool.( sizeof( O_surfacecxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:77:9`! ), 1, "o_surfacePool" ), |
| 77 | o_nurbssurfacePoolcxx . . $ _SoNurbsNurbsTessellator#o_nurbssurfacePool.( sizeof( O_nurbssurfacecxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:75:9`! ), 4, "o_nurbssurfacePool" ), |
| 78 | propertyPoolcxx . . $ _SoNurbsNurbsTessellator#propertyPool.( sizeof( Propertycxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:84:9`! ), 32, "propertyPool" ), |
| 79 | quiltPoolcxx . . $ _SoNurbsNurbsTessellator#quiltPool.( sizeof( Quiltcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:88:9`! ), 32, "quiltPool" ) |
| 80 | { |
| 81 | dlcxx . . $ _SoNurbsNurbsTessellator#dl. = 0; |
| 82 | inSurfacecxx . . $ _SoNurbsNurbsTessellator#inSurface. = 0; |
| 83 | inCurvecxx . . $ _SoNurbsNurbsTessellator#inCurve. = 0; |
| 84 | inTrimcxx . . $ _SoNurbsNurbsTessellator#inTrim. = 0; |
| 85 | playBackcxx . . $ _SoNurbsNurbsTessellator#playBack. = 0; |
| 86 | jumpbuffercxx . . $ _SoNurbsNurbsTessellator#jumpbuffer. = newJumpbuffercxx . . $ newJumpbuffer(c6555f4756e1a08b).(); |
| 87 | subdividercxx . . $ _SoNurbsNurbsTessellator#subdivider..setJumpbuffercxx . . $ _SoNurbsSubdivider#setJumpbuffer(e681024647a662cc).( jumpbuffercxx . . $ _SoNurbsNurbsTessellator#jumpbuffer. ); |
| 88 | } |
| 89 | |
| 90 | NurbsTessellatorcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:72:9`!::~cxx . . $ _SoNurbsNurbsTessellator#`~_SoNurbsNurbsTessellator`(49f6e7a06ebc5aa8).NurbsTessellatorcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:72:9`!( void ) |
| 91 | { |
| 92 | if( inTrimcxx . . $ _SoNurbsNurbsTessellator#inTrim. ) { |
| 93 | do_nurbserrorcxx . . $ _SoNurbsNurbsTessellator#do_nurbserror(d4f767463ce0a6b3).( 12 ); |
| 94 | endtrimcxx . . $ _SoNurbsNurbsTessellator#endtrim(49f6e7a06ebc5aa8).(); |
| 95 | } |
| 96 | |
| 97 | if( inSurfacecxx . . $ _SoNurbsNurbsTessellator#inSurface. ) { |
| 98 | *nextNurbssurfacecxx . . $ _SoNurbsNurbsTessellator#nextNurbssurface. = 0; |
| 99 | do_freeallcxx . . $ _SoNurbsNurbsTessellator#do_freeall(49f6e7a06ebc5aa8).(); |
| 100 | } |
| 101 | |
| 102 | if (jumpbuffercxx . . $ _SoNurbsNurbsTessellator#jumpbuffer.) { |
| 103 | deleteJumpbuffercxx . . $ deleteJumpbuffer(e681024647a662cc).(jumpbuffercxx . . $ _SoNurbsNurbsTessellator#jumpbuffer.); |
| 104 | jumpbuffercxx . . $ _SoNurbsNurbsTessellator#jumpbuffer.= 0; |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | /*----------------------------------------------------------------------------- |
| 109 | * bgnsurface - allocate and initialize an o_surface structure |
| 110 | * |
| 111 | * Client: GL user |
| 112 | *----------------------------------------------------------------------------- |
| 113 | */ |
| 114 | void |
| 115 | NurbsTessellatorcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:72:9`!::bgnsurfacecxx . . $ _SoNurbsNurbsTessellator#bgnsurface(1624ee8275b10bda).( long nuid ) |
| 116 | { |
| 117 | O_surfacecxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:77:9`! *o_surface = new(o_surfacePoolcxx . . $ _SoNurbsNurbsTessellator#o_surfacePool.) O_surfacecxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:77:9`!; |
| 118 | o_surface->nuidcxx . . $ _SoNurbsO_surface#nuid. = nuid; |
| 119 | THREADcxx . . $ `lib/database/src/so/nodes/nurbs/libnurbs/nurbsinterfac.c++:52:9`!( do_bgnsurface, o_surface, do_freebgnsurface ); |
| 120 | } |
| 121 | |
| 122 | /*----------------------------------------------------------------------------- |
| 123 | * bgncurve - allocate an initialize an o_curve structure |
| 124 | * |
| 125 | * Client: GL user |
| 126 | *----------------------------------------------------------------------------- |
| 127 | */ |
| 128 | void |
| 129 | NurbsTessellatorcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:72:9`!::bgncurvecxx . . $ _SoNurbsNurbsTessellator#bgncurve(1624ee8275b10bda).( long nuid ) |
| 130 | { |
| 131 | O_curvecxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:73:9`! *o_curve = new(o_curvePoolcxx . . $ _SoNurbsNurbsTessellator#o_curvePool.) O_curvecxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:73:9`!; |
| 132 | o_curve->nuidcxx . . $ _SoNurbsO_curve#nuid. = nuid; |
| 133 | THREADcxx . . $ `lib/database/src/so/nodes/nurbs/libnurbs/nurbsinterfac.c++:52:9`!( do_bgncurve, o_curve, do_freebgncurve ); |
| 134 | } |
| 135 | /*----------------------------------------------------------------------------- |
| 136 | * endcurve - |
| 137 | * |
| 138 | * Client: |
| 139 | *----------------------------------------------------------------------------- |
| 140 | */ |
| 141 | |
| 142 | void |
| 143 | NurbsTessellatorcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:72:9`!::endcurvecxx . . $ _SoNurbsNurbsTessellator#endcurve(49f6e7a06ebc5aa8).( void ) |
| 144 | { |
| 145 | THREAD2cxx . . $ `lib/database/src/so/nodes/nurbs/libnurbs/nurbsinterfac.c++:61:9`!( do_endcurve ); |
| 146 | } |
| 147 | |
| 148 | /*----------------------------------------------------------------------------- |
| 149 | * endsurface - user level end of surface call |
| 150 | * |
| 151 | * Client: GL user |
| 152 | *----------------------------------------------------------------------------- |
| 153 | */ |
| 154 | void |
| 155 | NurbsTessellatorcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:72:9`!::endsurfacecxx . . $ _SoNurbsNurbsTessellator#endsurface(49f6e7a06ebc5aa8).( void ) |
| 156 | { |
| 157 | THREAD2cxx . . $ `lib/database/src/so/nodes/nurbs/libnurbs/nurbsinterfac.c++:61:9`!( do_endsurface ); |
| 158 | } |
| 159 | |
| 160 | |
| 161 | /*----------------------------------------------------------------------------- |
| 162 | * bgntrim - allocate and initialize a new trim loop structure (o_trim ) |
| 163 | * |
| 164 | * Client: GL user |
| 165 | *----------------------------------------------------------------------------- |
| 166 | */ |
| 167 | void |
| 168 | NurbsTessellatorcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:72:9`!::bgntrimcxx . . $ _SoNurbsNurbsTessellator#bgntrim(49f6e7a06ebc5aa8).( void ) |
| 169 | { |
| 170 | O_trimcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:78:9`! *o_trim = new(o_trimPoolcxx . . $ _SoNurbsNurbsTessellator#o_trimPool.) O_trimcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:78:9`!; |
| 171 | THREADcxx . . $ `lib/database/src/so/nodes/nurbs/libnurbs/nurbsinterfac.c++:52:9`!( do_bgntrim, o_trim, do_freebgntrim ); |
| 172 | } |
| 173 | |
| 174 | /*----------------------------------------------------------------------------- |
| 175 | * endtrim - |
| 176 | * |
| 177 | * Client: GL user |
| 178 | *----------------------------------------------------------------------------- |
| 179 | */ |
| 180 | void |
| 181 | NurbsTessellatorcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:72:9`!::endtrimcxx . . $ _SoNurbsNurbsTessellator#endtrim(49f6e7a06ebc5aa8).( void ) |
| 182 | { |
| 183 | THREAD2cxx . . $ `lib/database/src/so/nodes/nurbs/libnurbs/nurbsinterfac.c++:61:9`!( do_endtrim ); |
| 184 | } |
| 185 | |
| 186 | |
| 187 | /*----------------------------------------------------------------------------- |
| 188 | * pwlcurve - |
| 189 | * |
| 190 | * count - number of points on curve |
| 191 | * array - array of points on curve |
| 192 | * byte_stride - distance between points in bytes |
| 193 | * type - valid data flag |
| 194 | * |
| 195 | * Client: Gl user |
| 196 | *----------------------------------------------------------------------------- |
| 197 | */ |
| 198 | void |
| 199 | NurbsTessellatorcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:72:9`!::pwlcurvecxx . . $ _SoNurbsNurbsTessellator#pwlcurve(688f409d9ffcbc2d).( long count, INREALcxx . . $ `lib/database/src/so/nodes/nurbs/head/types.h:46:9`! array[], long byte_stride, long type ) |
| 200 | { |
| 201 | Mapdesccxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:68:9`! *mapdesc = maplistcxx . . $ _SoNurbsNurbsTessellator#maplist..locatecxx . . $ _SoNurbsMaplist#locate(c3932793e9f587b0).( type ); |
| 202 | |
| 203 | if( mapdesc == 0 ) { |
| 204 | do_nurbserrorcxx . . $ _SoNurbsNurbsTessellator#do_nurbserror(d4f767463ce0a6b3).( 35 ); |
| 205 | isDataValidcxx . . $ _SoNurbsNurbsTessellator#isDataValid. = 0; |
| 206 | return; |
| 207 | } |
| 208 | |
| 209 | if ( (type != N_P2Dcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:120:9`!) && (type != N_P2DRcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:121:9`!) ) { |
| 210 | do_nurbserrorcxx . . $ _SoNurbsNurbsTessellator#do_nurbserror(d4f767463ce0a6b3).( 22 ); |
| 211 | isDataValidcxx . . $ _SoNurbsNurbsTessellator#isDataValid. = 0; |
| 212 | return; |
| 213 | } |
| 214 | if( count < 0 ) { |
| 215 | do_nurbserrorcxx . . $ _SoNurbsNurbsTessellator#do_nurbserror(d4f767463ce0a6b3).( 33 ); |
| 216 | isDataValidcxx . . $ _SoNurbsNurbsTessellator#isDataValid. = 0; |
| 217 | return; |
| 218 | } |
| 219 | if( byte_stride < 0 ) { |
| 220 | do_nurbserrorcxx . . $ _SoNurbsNurbsTessellator#do_nurbserror(d4f767463ce0a6b3).( 34 ); |
| 221 | isDataValidcxx . . $ _SoNurbsNurbsTessellator#isDataValid. = 0; |
| 222 | return; |
| 223 | } |
| 224 | |
| 225 | #ifdef NOTDEF |
| 226 | if( mapdesc->isRational() ) { |
| 227 | INREAL *p = array; |
| 228 | INREAL x = p[0]; INREAL y = p[1]; INREAL w = p[2]; |
| 229 | p = (INREAL *) (((char *) p) + byte_stride); |
| 230 | for( long i = 1; i != count; i++ ) { |
| 231 | if( p[0] == x && p[1] == y && p[2] == w ) break; |
| 232 | x = p[0]; y = p[1]; w = p[2]; |
| 233 | p = (INREAL *) (((char *) p) + byte_stride); |
| 234 | } |
| 235 | if( i != count ) { |
| 236 | do_nurbserror( 37 ); |
| 237 | dprintf( "point %d (%f,%f)\n", i, x, y ); |
| 238 | isDataValid = 0; |
| 239 | return; |
| 240 | } |
| 241 | } else { |
| 242 | INREAL *p = array; |
| 243 | INREAL x = p[0]; INREAL y = p[1]; |
| 244 | p = (INREAL *) (((char *) p) + byte_stride); |
| 245 | for( long i = 1; i != count; i++ ) { |
| 246 | if( p[0] == x && p[1] == y ) break; |
| 247 | x = p[0]; y = p[1]; |
| 248 | p = (INREAL *) (((char *) p) + byte_stride); |
| 249 | } |
| 250 | if( i != count ) { |
| 251 | do_nurbserror( 37 ); |
| 252 | dprintf( "point %d (%f,%f)\n", i, x, y ); |
| 253 | isDataValid = 0; |
| 254 | return; |
| 255 | } |
| 256 | } |
| 257 | #endif |
| 258 | |
| 259 | O_pwlcurvecxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:76:9`! *o_pwlcurve = new(o_pwlcurvePoolcxx . . $ _SoNurbsNurbsTessellator#o_pwlcurvePool.) O_pwlcurvecxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:76:9`!( type, count, array, byte_stride, extTrimVertexPoolcxx . . $ _SoNurbsNurbsTessellator#extTrimVertexPool..getcxx . . $ _SoNurbsTrimVertexPool#get(181e16c308993fc2).((int)count) ); |
| 260 | THREADcxx . . $ `lib/database/src/so/nodes/nurbs/libnurbs/nurbsinterfac.c++:52:9`!( do_pwlcurve, o_pwlcurve, do_freepwlcurve ); |
| 261 | } |
| 262 | |
| 263 | |
| 264 | /*----------------------------------------------------------------------------- |
| 265 | * nurbscurve - |
| 266 | * |
| 267 | * Client: GL user |
| 268 | *----------------------------------------------------------------------------- |
| 269 | */ |
| 270 | void |
| 271 | NurbsTessellatorcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:72:9`!::nurbscurvecxx . . $ _SoNurbsNurbsTessellator#nurbscurve(68c443770fef4d8f).( |
| 272 | long nknots, /* number of p knots */ |
| 273 | INREALcxx . . $ `lib/database/src/so/nodes/nurbs/head/types.h:46:9`! knot[], /* nondecreasing knot values in p */ |
| 274 | long byte_stride, /* distance in bytes between control points */ |
| 275 | INREALcxx . . $ `lib/database/src/so/nodes/nurbs/head/types.h:46:9`! ctlarray[], /* pointer to first control point */ |
| 276 | long order, /* order of spline */ |
| 277 | long type ) /* description of range space */ |
| 278 | { |
| 279 | |
| 280 | Mapdesccxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:68:9`! *mapdesc = maplistcxx . . $ _SoNurbsNurbsTessellator#maplist..locatecxx . . $ _SoNurbsMaplist#locate(c3932793e9f587b0).( type ); |
| 281 | |
| 282 | if( mapdesc == 0 ) { |
| 283 | do_nurbserrorcxx . . $ _SoNurbsNurbsTessellator#do_nurbserror(d4f767463ce0a6b3).( 35 ); |
| 284 | isDataValidcxx . . $ _SoNurbsNurbsTessellator#isDataValid. = 0; |
| 285 | return; |
| 286 | } |
| 287 | |
| 288 | if( ctlarray == 0 ) { |
| 289 | do_nurbserrorcxx . . $ _SoNurbsNurbsTessellator#do_nurbserror(d4f767463ce0a6b3).( 36 ); |
| 290 | isDataValidcxx . . $ _SoNurbsNurbsTessellator#isDataValid. = 0; |
| 291 | return; |
| 292 | } |
| 293 | |
| 294 | if( byte_stride < 0 ) { |
| 295 | do_nurbserrorcxx . . $ _SoNurbsNurbsTessellator#do_nurbserror(d4f767463ce0a6b3).( 34 ); |
| 296 | isDataValidcxx . . $ _SoNurbsNurbsTessellator#isDataValid. = 0; |
| 297 | return; |
| 298 | } |
| 299 | |
| 300 | Knotvectorcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:67:9`! knotscxx . . $ _SoNurbsKnotvector#_SoNurbsKnotvector(49f6e7a06ebc5aa8).; |
| 301 | |
| 302 | knots.initcxx . . $ _SoNurbsKnotvector#init(2d1c94a48708ea20).( nknots, byte_stride, order, knot ); |
| 303 | if( do_check_knotscxx . . $ _SoNurbsNurbsTessellator#do_check_knots(62cbbe3c415d25ee).( &knots, "curve" ) ) return; |
| 304 | |
| 305 | O_nurbscurvecxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:74:9`! *o_nurbscurve = new(o_nurbscurvePoolcxx . . $ _SoNurbsNurbsTessellator#o_nurbscurvePool.) O_nurbscurvecxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:74:9`!(type); |
| 306 | o_nurbscurve->bezier_curvescxx . . $ _SoNurbsO_nurbscurve#bezier_curves. = new(quiltPoolcxx . . $ _SoNurbsNurbsTessellator#quiltPool.) Quiltcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:88:9`!(mapdesc); |
| 307 | o_nurbscurve->bezier_curvescxx . . $ _SoNurbsO_nurbscurve#bezier_curves.->toBeziercxx . . $ _SoNurbsQuilt#toBezier(48552b36349bfb47).( knots,ctlarray, mapdesc->getNcoordscxx . . $ _SoNurbsMapdesc#getNcoords(b126dc7c1de90089).() ); |
| 308 | |
| 309 | THREADcxx . . $ `lib/database/src/so/nodes/nurbs/libnurbs/nurbsinterfac.c++:52:9`!( do_nurbscurve, o_nurbscurve, do_freenurbscurve ); |
| 310 | } |
| 311 | |
| 312 | |
| 313 | /*----------------------------------------------------------------------------- |
| 314 | * nurbssurface - |
| 315 | * |
| 316 | * Client: User routine |
| 317 | *----------------------------------------------------------------------------- |
| 318 | */ |
| 319 | void |
| 320 | NurbsTessellatorcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:72:9`!::nurbssurfacecxx . . $ _SoNurbsNurbsTessellator#nurbssurface(52ba3722ef29deca).( |
| 321 | long sknot_count, /* number of s knots */ |
| 322 | INREALcxx . . $ `lib/database/src/so/nodes/nurbs/head/types.h:46:9`! sknot[], /* nondecreasing knot values in s */ |
| 323 | long tknot_count, /* number of t knots */ |
| 324 | INREALcxx . . $ `lib/database/src/so/nodes/nurbs/head/types.h:46:9`! tknot[], /* nondecreasing knot values in t */ |
| 325 | long s_byte_stride, /* s step size in memory bytes */ |
| 326 | long t_byte_stride, /* t step size in memory bytes */ |
| 327 | INREALcxx . . $ `lib/database/src/so/nodes/nurbs/head/types.h:46:9`! ctlarray[], /* pointer to first control point */ |
| 328 | long sorder, /* order of the spline in s parameter */ |
| 329 | long torder, /* order of the spline in t parameter */ |
| 330 | long type) /* description of range space */ |
| 331 | { |
| 332 | Mapdesccxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:68:9`! *mapdesc = maplistcxx . . $ _SoNurbsNurbsTessellator#maplist..locatecxx . . $ _SoNurbsMaplist#locate(c3932793e9f587b0).( type ); |
| 333 | |
| 334 | if( mapdesc == 0 ) { |
| 335 | do_nurbserrorcxx . . $ _SoNurbsNurbsTessellator#do_nurbserror(d4f767463ce0a6b3).( 35 ); |
| 336 | isDataValidcxx . . $ _SoNurbsNurbsTessellator#isDataValid. = 0; |
| 337 | return; |
| 338 | } |
| 339 | |
| 340 | if( s_byte_stride < 0 ) { |
| 341 | do_nurbserrorcxx . . $ _SoNurbsNurbsTessellator#do_nurbserror(d4f767463ce0a6b3).( 34 ); |
| 342 | isDataValidcxx . . $ _SoNurbsNurbsTessellator#isDataValid. = 0; |
| 343 | return; |
| 344 | } |
| 345 | |
| 346 | if( t_byte_stride < 0 ) { |
| 347 | do_nurbserrorcxx . . $ _SoNurbsNurbsTessellator#do_nurbserror(d4f767463ce0a6b3).( 34 ); |
| 348 | isDataValidcxx . . $ _SoNurbsNurbsTessellator#isDataValid. = 0; |
| 349 | return; |
| 350 | } |
| 351 | |
| 352 | Knotvectorcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:67:9`! sknotvectorcxx . . $ _SoNurbsKnotvector#_SoNurbsKnotvector(49f6e7a06ebc5aa8)., tknotvectorcxx . . $ _SoNurbsKnotvector#_SoNurbsKnotvector(49f6e7a06ebc5aa8).; |
| 353 | |
| 354 | sknotvector.initcxx . . $ _SoNurbsKnotvector#init(2d1c94a48708ea20).( sknot_count, s_byte_stride, sorder, sknot ); |
| 355 | if( do_check_knotscxx . . $ _SoNurbsNurbsTessellator#do_check_knots(62cbbe3c415d25ee).( &sknotvector, "surface" ) ) return; |
| 356 | |
| 357 | tknotvector.initcxx . . $ _SoNurbsKnotvector#init(2d1c94a48708ea20).( tknot_count, t_byte_stride, torder, tknot ); |
| 358 | if( do_check_knotscxx . . $ _SoNurbsNurbsTessellator#do_check_knots(62cbbe3c415d25ee).( &tknotvector, "surface" ) ) return; |
| 359 | |
| 360 | O_nurbssurfacecxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:75:9`! *o_nurbssurface = new(o_nurbssurfacePoolcxx . . $ _SoNurbsNurbsTessellator#o_nurbssurfacePool.) O_nurbssurfacecxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:75:9`!(type); |
| 361 | o_nurbssurface->bezier_patchescxx . . $ _SoNurbsO_nurbssurface#bezier_patches. = new(quiltPoolcxx . . $ _SoNurbsNurbsTessellator#quiltPool.) Quiltcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:88:9`!(mapdesc); |
| 362 | |
| 363 | o_nurbssurface->bezier_patchescxx . . $ _SoNurbsO_nurbssurface#bezier_patches.->toBeziercxx . . $ _SoNurbsQuilt#toBezier(c5b19d0b060a89a5).( sknotvector, tknotvector, |
| 364 | ctlarray, mapdesc->getNcoordscxx . . $ _SoNurbsMapdesc#getNcoords(b126dc7c1de90089).() ); |
| 365 | THREADcxx . . $ `lib/database/src/so/nodes/nurbs/libnurbs/nurbsinterfac.c++:52:9`!( do_nurbssurface, o_nurbssurface, do_freenurbssurface ); |
| 366 | } |
| 367 | |
| 368 | |
| 369 | /*----------------------------------------------------------------------------- |
| 370 | * setnurbsproperty - |
| 371 | * |
| 372 | *----------------------------------------------------------------------------- |
| 373 | */ |
| 374 | void |
| 375 | NurbsTessellatorcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:72:9`!::setnurbspropertycxx . . $ _SoNurbsNurbsTessellator#setnurbsproperty(8cdf330d7f01661).( long tag, INREALcxx . . $ `lib/database/src/so/nodes/nurbs/head/types.h:46:9`! value ) |
| 376 | { |
| 377 | if( ! renderhintscxx . . $ _SoNurbsNurbsTessellator#renderhints..isPropertycxx . . $ _SoNurbsRenderhints#isProperty(a9e4e82268fd7bfa).( tag ) ) { |
| 378 | do_nurbserrorcxx . . $ _SoNurbsNurbsTessellator#do_nurbserror(d4f767463ce0a6b3).( 26 ); |
| 379 | } else { |
| 380 | Propertycxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:84:9`! *prop = new(propertyPoolcxx . . $ _SoNurbsNurbsTessellator#propertyPool.) Propertycxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:84:9`!( tag, value ); |
| 381 | THREADcxx . . $ `lib/database/src/so/nodes/nurbs/libnurbs/nurbsinterfac.c++:52:9`!( do_setnurbsproperty, prop, do_freenurbsproperty ); |
| 382 | } |
| 383 | } |
| 384 | |
| 385 | /*----------------------------------------------------------------------------- |
| 386 | * setnurbsproperty - |
| 387 | * |
| 388 | *----------------------------------------------------------------------------- |
| 389 | */ |
| 390 | void |
| 391 | NurbsTessellatorcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:72:9`!::setnurbspropertycxx . . $ _SoNurbsNurbsTessellator#setnurbsproperty(796cb56005eb5818).( long type, long tag, INREALcxx . . $ `lib/database/src/so/nodes/nurbs/head/types.h:46:9`! value ) |
| 392 | { |
| 393 | Mapdesccxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:68:9`! *mapdesc = maplistcxx . . $ _SoNurbsNurbsTessellator#maplist..locatecxx . . $ _SoNurbsMaplist#locate(c3932793e9f587b0).( type ); |
| 394 | |
| 395 | if( mapdesc == 0 ) { |
| 396 | do_nurbserrorcxx . . $ _SoNurbsNurbsTessellator#do_nurbserror(d4f767463ce0a6b3).( 35 ); |
| 397 | return; |
| 398 | } |
| 399 | |
| 400 | if( ! mapdesc->isPropertycxx . . $ _SoNurbsMapdesc#isProperty(a9e4e82268fd7bfa).( tag ) ) { |
| 401 | do_nurbserrorcxx . . $ _SoNurbsNurbsTessellator#do_nurbserror(d4f767463ce0a6b3).( 26 ); |
| 402 | return; |
| 403 | } |
| 404 | |
| 405 | Propertycxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:84:9`! *prop = new(propertyPoolcxx . . $ _SoNurbsNurbsTessellator#propertyPool.) Propertycxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:84:9`!( type, tag, value ); |
| 406 | THREADcxx . . $ `lib/database/src/so/nodes/nurbs/libnurbs/nurbsinterfac.c++:52:9`!( do_setnurbsproperty2, prop, do_freenurbsproperty ); |
| 407 | } |
| 408 | |
| 409 | |
| 410 | /*----------------------------------------------------------------------------- |
| 411 | * getnurbsproperty - |
| 412 | * |
| 413 | *----------------------------------------------------------------------------- |
| 414 | */ |
| 415 | |
| 416 | void |
| 417 | NurbsTessellatorcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:72:9`!::getnurbspropertycxx . . $ _SoNurbsNurbsTessellator#getnurbsproperty(a88997072fe067b9).( long tag, INREALcxx . . $ `lib/database/src/so/nodes/nurbs/head/types.h:46:9`! *value ) |
| 418 | { |
| 419 | if( renderhintscxx . . $ _SoNurbsNurbsTessellator#renderhints..isPropertycxx . . $ _SoNurbsRenderhints#isProperty(a9e4e82268fd7bfa).( tag ) ) { |
| 420 | *value = renderhintscxx . . $ _SoNurbsNurbsTessellator#renderhints..getPropertycxx . . $ _SoNurbsRenderhints#getProperty(ee41e91a4ea7c917).( tag ); |
| 421 | } else { |
| 422 | do_nurbserrorcxx . . $ _SoNurbsNurbsTessellator#do_nurbserror(d4f767463ce0a6b3).( 26 ); |
| 423 | } |
| 424 | } |
| 425 | |
| 426 | /*----------------------------------------------------------------------------- |
| 427 | * getnurbsproperty - |
| 428 | * |
| 429 | *----------------------------------------------------------------------------- |
| 430 | */ |
| 431 | |
| 432 | void |
| 433 | NurbsTessellatorcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:72:9`!::getnurbspropertycxx . . $ _SoNurbsNurbsTessellator#getnurbsproperty(457b007d4a7aeffd).( long type, long tag, INREALcxx . . $ `lib/database/src/so/nodes/nurbs/head/types.h:46:9`! *value ) |
| 434 | { |
| 435 | Mapdesccxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:68:9`! *mapdesc = maplistcxx . . $ _SoNurbsNurbsTessellator#maplist..locatecxx . . $ _SoNurbsMaplist#locate(c3932793e9f587b0).( type ); |
| 436 | |
| 437 | if( mapdesc == 0 ) |
| 438 | do_nurbserrorcxx . . $ _SoNurbsNurbsTessellator#do_nurbserror(d4f767463ce0a6b3).( 35 ); |
| 439 | |
| 440 | if( mapdesc->isPropertycxx . . $ _SoNurbsMapdesc#isProperty(a9e4e82268fd7bfa).( tag ) ) { |
| 441 | *value = mapdesc->getPropertycxx . . $ _SoNurbsMapdesc#getProperty(ee41e91a4ea7c917).( tag ); |
| 442 | } else { |
| 443 | do_nurbserrorcxx . . $ _SoNurbsNurbsTessellator#do_nurbserror(d4f767463ce0a6b3).( 26 ); |
| 444 | } |
| 445 | } |
| 446 | |
| 447 | /*-------------------------------------------------------------------------- |
| 448 | * setnurbsproperty - accept a user supplied matrix as culling or sampling mat |
| 449 | *-------------------------------------------------------------------------- |
| 450 | */ |
| 451 | |
| 452 | void |
| 453 | NurbsTessellatorcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:72:9`!::setnurbspropertycxx . . $ _SoNurbsNurbsTessellator#setnurbsproperty(457b007d4a7aeffd).( long type, long purpose, INREALcxx . . $ `lib/database/src/so/nodes/nurbs/head/types.h:46:9`! *mat ) |
| 454 | { |
| 455 | // XXX - cannot be put in display list |
| 456 | Mapdesccxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:68:9`! *mapdesc = maplistcxx . . $ _SoNurbsNurbsTessellator#maplist..locatecxx . . $ _SoNurbsMaplist#locate(c3932793e9f587b0).( type ); |
| 457 | |
| 458 | if( mapdesc == 0 ) { |
| 459 | do_nurbserrorcxx . . $ _SoNurbsNurbsTessellator#do_nurbserror(d4f767463ce0a6b3).( 35 ); |
| 460 | isDataValidcxx . . $ _SoNurbsNurbsTessellator#isDataValid. = 0; |
| 461 | } else if( purpose == N_BBOXSIZEcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:116:9`! ) { |
| 462 | mapdesc->setBboxsizecxx . . $ _SoNurbsMapdesc#setBboxsize(e6881f009d13a851).( mat ); |
| 463 | } else { |
| 464 | #ifndef NDEBUGcxx . . $ `<built-in>:440:9`! |
| 465 | dprintf( "ERRORRORRORR!!!\n"); |
| 466 | #endif |
| 467 | } |
| 468 | } |
| 469 | |
| 470 | /*-------------------------------------------------------------------------- |
| 471 | * setnurbsproperty - accept a user supplied matrix as culling or sampling mat |
| 472 | *-------------------------------------------------------------------------- |
| 473 | */ |
| 474 | |
| 475 | void |
| 476 | NurbsTessellatorcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:72:9`!::setnurbspropertycxx . . $ _SoNurbsNurbsTessellator#setnurbsproperty(2bfa3cd52de87ebe).( long type, long purpose, INREALcxx . . $ `lib/database/src/so/nodes/nurbs/head/types.h:46:9`! *mat, |
| 477 | long rstride, long cstride ) |
| 478 | { |
| 479 | // XXX - cannot be put in display list |
| 480 | Mapdesccxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:68:9`! *mapdesc = maplistcxx . . $ _SoNurbsNurbsTessellator#maplist..locatecxx . . $ _SoNurbsMaplist#locate(c3932793e9f587b0).( type ); |
| 481 | |
| 482 | if( mapdesc == 0 ) { |
| 483 | do_nurbserrorcxx . . $ _SoNurbsNurbsTessellator#do_nurbserror(d4f767463ce0a6b3).( 35 ); |
| 484 | isDataValidcxx . . $ _SoNurbsNurbsTessellator#isDataValid. = 0; |
| 485 | } else if( purpose == N_CULLINGMATRIXcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:109:9`! ) { |
| 486 | mapdesc->setCmatcxx . . $ _SoNurbsMapdesc#setCmat(5359d89a64aec9fc).( mat, rstride, cstride ); |
| 487 | } else if( purpose == N_SAMPLINGMATRIXcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:110:9`! ) { |
| 488 | mapdesc->setSmatcxx . . $ _SoNurbsMapdesc#setSmat(5359d89a64aec9fc).( mat, rstride, cstride ); |
| 489 | } else if( purpose == N_BBOXMATRIXcxx . . $ `lib/database/src/so/nodes/nurbs/head/nurbsconsts.h:111:9`! ) { |
| 490 | mapdesc->setBmatcxx . . $ _SoNurbsMapdesc#setBmat(5359d89a64aec9fc).( mat, rstride, cstride ); |
| 491 | } else { |
| 492 | #ifndef NDEBUGcxx . . $ `<built-in>:440:9`! |
| 493 | dprintf( "ERRORRORRORR!!!\n"); |
| 494 | #endif |
| 495 | } |
| 496 | } |
| 497 | |
| 498 | void |
| 499 | NurbsTessellatorcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:72:9`!::redefineMapscxx . . $ _SoNurbsNurbsTessellator#redefineMaps(49f6e7a06ebc5aa8).( void ) |
| 500 | { |
| 501 | maplistcxx . . $ _SoNurbsNurbsTessellator#maplist..initializecxx . . $ _SoNurbsMaplist#initialize(49f6e7a06ebc5aa8).(); |
| 502 | } |
| 503 | |
| 504 | void |
| 505 | NurbsTessellatorcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:72:9`!::defineMapcxx . . $ _SoNurbsNurbsTessellator#defineMap(1accef8d191cd3cf).( long type, long rational, long ncoords ) |
| 506 | { |
| 507 | maplistcxx . . $ _SoNurbsNurbsTessellator#maplist..definecxx . . $ _SoNurbsMaplist#define(e76bd0a3fa11ad9a).( type, (int) rational, (int) ncoords ); |
| 508 | } |
| 509 | |
| 510 | void |
| 511 | NurbsTessellatorcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:72:9`!::discardRecordingcxx . . $ _SoNurbsNurbsTessellator#discardRecording(5d22bdacc48458e8).( void *_dl ) |
| 512 | { |
| 513 | delete (DisplayListcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:54:9`! *) _dl; |
| 514 | } |
| 515 | |
| 516 | void * |
| 517 | NurbsTessellatorcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:72:9`!::beginRecordingcxx . . $ _SoNurbsNurbsTessellator#beginRecording(50c7df7de5344ebb).( void ) |
| 518 | { |
| 519 | dlcxx . . $ _SoNurbsNurbsTessellator#dl. = new DisplayListcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:54:9`!( this ); |
| 520 | return (void *) dlcxx . . $ _SoNurbsNurbsTessellator#dl.; |
| 521 | } |
| 522 | |
| 523 | void |
| 524 | NurbsTessellatorcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:72:9`!::endRecordingcxx . . $ _SoNurbsNurbsTessellator#endRecording(49f6e7a06ebc5aa8).( void ) |
| 525 | { |
| 526 | dlcxx . . $ _SoNurbsNurbsTessellator#dl.->endListcxx . . $ _SoNurbsDisplayList#endList(49f6e7a06ebc5aa8).(); |
| 527 | dlcxx . . $ _SoNurbsNurbsTessellator#dl. = 0; |
| 528 | } |
| 529 | |
| 530 | void |
| 531 | NurbsTessellatorcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:72:9`!::playRecordingcxx . . $ _SoNurbsNurbsTessellator#playRecording(5d22bdacc48458e8).( void *_dl ) |
| 532 | { |
| 533 | playBackcxx . . $ _SoNurbsNurbsTessellator#playBack. = 1; |
| 534 | bgnrendercxx . . $ _SoNurbsNurbsTessellator#bgnrender(49f6e7a06ebc5aa8).(); |
| 535 | ((DisplayListcxx . . $ `lib/database/src/so/nodes/nurbs/_defines.h:54:9`! *)_dl)->playcxx . . $ _SoNurbsDisplayList#play(49f6e7a06ebc5aa8).(); |
| 536 | endrendercxx . . $ _SoNurbsNurbsTessellator#endrender(49f6e7a06ebc5aa8).(); |
| 537 | playBackcxx . . $ _SoNurbsNurbsTessellator#playBack. = 0; |
| 538 | } |
| 539 |