23 namespace SOP_Triangulate2D_3_0Enums
35 using namespace UT::Literal;
54 using namespace UT::Literal;
78 myPos2AttribName =
""_UTsh;
79 myUseConstrEdges =
false;
80 myConstrEdges =
""_UTsh;
81 myUseConstrPolys =
false;
82 myConstrPolys =
""_UTsh;
83 myIgnorePolyBridges =
false;
84 myUseSilhouettePolys =
false;
85 mySilhouettePolys =
""_UTsh;
86 myAllowConstrSplit =
true;
87 myUseExactConstruction =
false;
88 myIgnoreNonConstrPts =
false;
89 myRemoveFromConvexHull =
false;
90 myRemoveFromConstrPolys =
false;
91 myRemoveOutsideSilhouette =
false;
93 myAllowRefineConstrSplits =
true;
94 myEncroachAngle = 180;
98 myTargetEdgeLength = 100;
99 myMinEdgeLength = 0.0001;
102 myAllowMovingInteriorInputPts =
false;
103 myRestorePos =
false;
105 myUpdateNormals =
true;
106 myRemoveUnusedPts =
true;
107 myRemoveDuplicatePts =
true;
108 myUseConstrSplitPtsGrp =
false;
109 myConstrSplitPtsGrp =
"constrsplitpts"_UTsh;
110 myUseConstrdEdges =
false;
111 myConstrdEdges =
"constrdedges"_UTsh;
125 if (myPoints != src.myPoints)
return false;
126 if (myPlanePosSrc != src.myPlanePosSrc)
return false;
127 if (myOrigin != src.myOrigin)
return false;
128 if (myDist != src.myDist)
return false;
129 if (myDir != src.myDir)
return false;
130 if (myPos2AttribName != src.myPos2AttribName)
return false;
131 if (myUseConstrEdges != src.myUseConstrEdges)
return false;
132 if (myConstrEdges != src.myConstrEdges)
return false;
133 if (myUseConstrPolys != src.myUseConstrPolys)
return false;
134 if (myConstrPolys != src.myConstrPolys)
return false;
135 if (myIgnorePolyBridges != src.myIgnorePolyBridges)
return false;
136 if (myUseSilhouettePolys != src.myUseSilhouettePolys)
return false;
137 if (mySilhouettePolys != src.mySilhouettePolys)
return false;
138 if (myAllowConstrSplit != src.myAllowConstrSplit)
return false;
139 if (myUseExactConstruction != src.myUseExactConstruction)
return false;
140 if (myIgnoreNonConstrPts != src.myIgnoreNonConstrPts)
return false;
141 if (myRemoveFromConvexHull != src.myRemoveFromConvexHull)
return false;
142 if (myRemoveFromConstrPolys != src.myRemoveFromConstrPolys)
return false;
143 if (myRemoveOutsideSilhouette != src.myRemoveOutsideSilhouette)
return false;
144 if (myRefine != src.myRefine)
return false;
145 if (myAllowRefineConstrSplits != src.myAllowRefineConstrSplits)
return false;
146 if (myEncroachAngle != src.myEncroachAngle)
return false;
147 if (myMinAngle != src.myMinAngle)
return false;
148 if (myTriangleSize != src.myTriangleSize)
return false;
149 if (myMaxArea != src.myMaxArea)
return false;
150 if (myTargetEdgeLength != src.myTargetEdgeLength)
return false;
151 if (myMinEdgeLength != src.myMinEdgeLength)
return false;
152 if (myMaxNewPts != src.myMaxNewPts)
return false;
153 if (myNumLloydSteps != src.myNumLloydSteps)
return false;
154 if (myAllowMovingInteriorInputPts != src.myAllowMovingInteriorInputPts)
return false;
155 if (myRestorePos != src.myRestorePos)
return false;
156 if (myKeepPrims != src.myKeepPrims)
return false;
157 if (myUpdateNormals != src.myUpdateNormals)
return false;
158 if (myRemoveUnusedPts != src.myRemoveUnusedPts)
return false;
159 if (myRemoveDuplicatePts != src.myRemoveDuplicatePts)
return false;
160 if (myUseConstrSplitPtsGrp != src.myUseConstrSplitPtsGrp)
return false;
161 if (myConstrSplitPtsGrp != src.myConstrSplitPtsGrp)
return false;
162 if (myUseConstrdEdges != src.myUseConstrdEdges)
return false;
163 if (myConstrdEdges != src.myConstrdEdges)
return false;
164 if (myRandomSeed != src.myRandomSeed)
return false;
184 graph->
evalOpParm(myPoints, nodeidx,
"points", time, graph->
isDirect()?
nullptr:depnode);
187 graph->
evalOpParm(myPlanePosSrc, nodeidx,
"planepossrc", time, graph->
isDirect()?
nullptr:depnode);
189 if (
true && ( (
true&&!(((
int64(getPlanePosSrc())!=1)))) ) )
190 graph->
evalOpParm(myOrigin, nodeidx,
"origin", time, graph->
isDirect()?
nullptr:depnode);
192 if (
true && ( (
true&&!(((
int64(getPlanePosSrc())!=1)))) ) )
195 if (
true && ( (
true&&!(((
int64(getPlanePosSrc())!=1)))) ) )
197 myPos2AttribName =
""_UTsh;
198 if (
true && ( (
true&&!(((
int64(getPlanePosSrc())!=2)))) ) )
199 graph->
evalOpParm(myPos2AttribName, nodeidx,
"pos2attrib", time, graph->
isDirect()?
nullptr:depnode);
200 myUseConstrEdges =
false;
202 graph->
evalOpParm(myUseConstrEdges, nodeidx,
"useconstredges", time, graph->
isDirect()?
nullptr:depnode);
203 myConstrEdges =
""_UTsh;
204 if (
true && ( (
true&&!(((getUseConstrEdges()==0)))) ) )
205 graph->
evalOpParm(myConstrEdges, nodeidx,
"constredges", time, graph->
isDirect()?
nullptr:depnode);
206 myUseConstrPolys =
false;
208 graph->
evalOpParm(myUseConstrPolys, nodeidx,
"useconstrpolys", time, graph->
isDirect()?
nullptr:depnode);
209 myConstrPolys =
""_UTsh;
210 if (
true && ( (
true&&!(((getUseConstrPolys()==0)))) ) )
211 graph->
evalOpParm(myConstrPolys, nodeidx,
"constrpolys", time, graph->
isDirect()?
nullptr:depnode);
212 myIgnorePolyBridges =
false;
213 if (
true && ( (
true&&!(((getUseConstrPolys()==0)))) ) )
214 graph->
evalOpParm(myIgnorePolyBridges, nodeidx,
"ignorepolybridges", time, graph->
isDirect()?
nullptr:depnode);
215 myUseSilhouettePolys =
false;
217 graph->
evalOpParm(myUseSilhouettePolys, nodeidx,
"usesilhouettepolys", time, graph->
isDirect()?
nullptr:depnode);
218 mySilhouettePolys =
""_UTsh;
219 if (
true && ( (
true&&!(((getUseSilhouettePolys()==0)))) ) )
220 graph->
evalOpParm(mySilhouettePolys, nodeidx,
"silhouettepolys", time, graph->
isDirect()?
nullptr:depnode);
221 myAllowConstrSplit =
true;
223 graph->
evalOpParm(myAllowConstrSplit, nodeidx,
"allowconstrsplit", time, graph->
isDirect()?
nullptr:depnode);
224 myUseExactConstruction =
false;
225 if (
true && ( (
true&&!(((getAllowConstrSplit()==0)))) ) )
226 graph->
evalOpParm(myUseExactConstruction, nodeidx,
"useexactconstruction", time, graph->
isDirect()?
nullptr:depnode);
227 myIgnoreNonConstrPts =
false;
228 if (
true && ( (
true&&!(((getUseConstrEdges()==0)&&(getUseConstrPolys()==0)&&(getUseSilhouettePolys()==0)))) ) )
229 graph->
evalOpParm(myIgnoreNonConstrPts, nodeidx,
"ignorenonconstrpts", time, graph->
isDirect()?
nullptr:depnode);
230 myRemoveFromConvexHull =
false;
231 if (
true && ( (
true&&!(((getUseConstrEdges()==0)&&(getUseConstrPolys()==0)&&(getUseSilhouettePolys()==0)))) ) )
232 graph->
evalOpParm(myRemoveFromConvexHull, nodeidx,
"removefromconvexhull", time, graph->
isDirect()?
nullptr:depnode);
233 myRemoveFromConstrPolys =
false;
234 if (
true && ( (
true&&!(((getUseConstrPolys()==0)))) ) )
235 graph->
evalOpParm(myRemoveFromConstrPolys, nodeidx,
"removefromconstrpolys", time, graph->
isDirect()?
nullptr:depnode);
236 myRemoveOutsideSilhouette =
false;
237 if (
true && ( (
true&&!(((getUseSilhouettePolys()==0)))) ) )
238 graph->
evalOpParm(myRemoveOutsideSilhouette, nodeidx,
"removeoutsidesilhouette", time, graph->
isDirect()?
nullptr:depnode);
241 graph->
evalOpParm(myRefine, nodeidx,
"refine", time, graph->
isDirect()?
nullptr:depnode);
242 myAllowRefineConstrSplits =
true;
244 graph->
evalOpParm(myAllowRefineConstrSplits, nodeidx,
"allowrefineonstrsplit", time, graph->
isDirect()?
nullptr:depnode);
245 myEncroachAngle = 180;
246 if (
true && ( (
true&&!(((getAllowRefineConstrSplits()==1)))) ) )
247 graph->
evalOpParm(myEncroachAngle, nodeidx,
"encroachangle", time, graph->
isDirect()?
nullptr:depnode);
249 if (
true && ( (
true&&!(((getRefine()==0)))) ) )
250 graph->
evalOpParm(myMinAngle, nodeidx,
"minangle", time, graph->
isDirect()?
nullptr:depnode);
252 if (
true && ( (
true&&!(((getRefine()==0)))) ) )
253 graph->
evalOpParm(myTriangleSize, nodeidx,
"trianglesize", time, graph->
isDirect()?
nullptr:depnode);
255 if (
true && ( (
true&&!(((
int64(getTriangleSize())!=1))||((getRefine()==0)))) ) )
256 graph->
evalOpParm(myMaxArea, nodeidx,
"maxarea", time, graph->
isDirect()?
nullptr:depnode);
257 myTargetEdgeLength = 100;
258 if (
true && ( (
true&&!(((
int64(getTriangleSize())!=2))||((getRefine()==0)))) ) )
259 graph->
evalOpParm(myTargetEdgeLength, nodeidx,
"targetedgelength", time, graph->
isDirect()?
nullptr:depnode);
260 myMinEdgeLength = 0.0001;
261 if (
true && ( (
true&&!(((getRefine()==0)))) ) )
262 graph->
evalOpParm(myMinEdgeLength, nodeidx,
"minedgelength", time, graph->
isDirect()?
nullptr:depnode);
264 if (
true && ( (
true&&!(((getRefine()==0)))) ) )
265 graph->
evalOpParm(myMaxNewPts, nodeidx,
"maxnewpts", time, graph->
isDirect()?
nullptr:depnode);
267 if (
true && ( (
true&&!(((getRefine()==0)))) ) )
268 graph->
evalOpParm(myNumLloydSteps, nodeidx,
"lloydsteps", time, graph->
isDirect()?
nullptr:depnode);
269 myAllowMovingInteriorInputPts =
false;
270 if (
true && ( (
true&&!(((getRefine()==0))||((
int64(getNumLloydSteps())==0)))) ) )
271 graph->
evalOpParm(myAllowMovingInteriorInputPts, nodeidx,
"allowmovinginteriorpts", time, graph->
isDirect()?
nullptr:depnode);
272 myRestorePos =
false;
274 graph->
evalOpParm(myRestorePos, nodeidx,
"restorepos", time, graph->
isDirect()?
nullptr:depnode);
277 graph->
evalOpParm(myKeepPrims, nodeidx,
"keepprims", time, graph->
isDirect()?
nullptr:depnode);
278 myUpdateNormals =
true;
280 graph->
evalOpParm(myUpdateNormals, nodeidx,
"updatenmls", time, graph->
isDirect()?
nullptr:depnode);
281 myRemoveUnusedPts =
true;
283 graph->
evalOpParm(myRemoveUnusedPts, nodeidx,
"removeunusedpoints", time, graph->
isDirect()?
nullptr:depnode);
284 myRemoveDuplicatePts =
true;
286 graph->
evalOpParm(myRemoveDuplicatePts, nodeidx,
"removeduplicatepoints", time, graph->
isDirect()?
nullptr:depnode);
287 myUseConstrSplitPtsGrp =
false;
288 if (
true && ( (
true&&!(((getAllowConstrSplit()==0)))) ) )
289 graph->
evalOpParm(myUseConstrSplitPtsGrp, nodeidx,
"usecontrsplitptgrp", time, graph->
isDirect()?
nullptr:depnode);
290 myConstrSplitPtsGrp =
"constrsplitpts"_UTsh;
291 if (
true && ( (
true&&!(((getUseConstrSplitPtsGrp()==0)))) ) )
292 graph->
evalOpParm(myConstrSplitPtsGrp, nodeidx,
"constrsplitptgrp", time, graph->
isDirect()?
nullptr:depnode);
293 myUseConstrdEdges =
false;
295 graph->
evalOpParm(myUseConstrdEdges, nodeidx,
"useconstrdedges", time, graph->
isDirect()?
nullptr:depnode);
296 myConstrdEdges =
"constrdedges"_UTsh;
297 if (
true && ( (
true&&!(((getUseConstrdEdges()==0)))) ) )
298 graph->
evalOpParm(myConstrdEdges, nodeidx,
"constrdedges", time, graph->
isDirect()?
nullptr:depnode);
301 graph->
evalOpParm(myRandomSeed, nodeidx,
"randseed", time, graph->
isDirect()?
nullptr:depnode);
317 template <
typename T>
324 if (idx.
size() != instance.
size()+1)
329 coerceValue(value, myPoints);
332 coerceValue(value, myPlanePosSrc);
335 coerceValue(value, myOrigin);
338 coerceValue(value, myDist);
341 coerceValue(value, myDir);
344 coerceValue(value, myPos2AttribName);
347 coerceValue(value, myUseConstrEdges);
350 coerceValue(value, myConstrEdges);
353 coerceValue(value, myUseConstrPolys);
356 coerceValue(value, myConstrPolys);
359 coerceValue(value, myIgnorePolyBridges);
362 coerceValue(value, myUseSilhouettePolys);
365 coerceValue(value, mySilhouettePolys);
368 coerceValue(value, myAllowConstrSplit);
371 coerceValue(value, myUseExactConstruction);
374 coerceValue(value, myIgnoreNonConstrPts);
377 coerceValue(value, myRemoveFromConvexHull);
380 coerceValue(value, myRemoveFromConstrPolys);
383 coerceValue(value, myRemoveOutsideSilhouette);
386 coerceValue(value, myRefine);
389 coerceValue(value, myAllowRefineConstrSplits);
392 coerceValue(value, myEncroachAngle);
395 coerceValue(value, myMinAngle);
398 coerceValue(value, myTriangleSize);
401 coerceValue(value, myMaxArea);
404 coerceValue(value, myTargetEdgeLength);
407 coerceValue(value, myMinEdgeLength);
410 coerceValue(value, myMaxNewPts);
413 coerceValue(value, myNumLloydSteps);
416 coerceValue(value, myAllowMovingInteriorInputPts);
419 coerceValue(value, myRestorePos);
422 coerceValue(value, myKeepPrims);
425 coerceValue(value, myUpdateNormals);
428 coerceValue(value, myRemoveUnusedPts);
431 coerceValue(value, myRemoveDuplicatePts);
434 coerceValue(value, myUseConstrSplitPtsGrp);
437 coerceValue(value, myConstrSplitPtsGrp);
440 coerceValue(value, myUseConstrdEdges);
443 coerceValue(value, myConstrdEdges);
446 coerceValue(value, myRandomSeed);
462 { doGetParmValue(idx, instance, value); }
464 { doGetParmValue(idx, instance, value); }
466 { doGetParmValue(idx, instance, value); }
468 { doGetParmValue(idx, instance, value); }
470 { doGetParmValue(idx, instance, value); }
472 { doGetParmValue(idx, instance, value); }
474 { doGetParmValue(idx, instance, value); }
476 { doGetParmValue(idx, instance, value); }
478 { doGetParmValue(idx, instance, value); }
480 { doGetParmValue(idx, instance, value); }
482 { doGetParmValue(idx, instance, value); }
484 template <
typename T>
491 if (idx.
size() != instance.
size()+1)
496 coerceValue(myPoints, ( ( value ) ));
499 coerceValue(myPlanePosSrc, clampMinValue(0, clampMaxValue(2, value ) ));
502 coerceValue(myOrigin, ( ( value ) ));
505 coerceValue(myDist, ( ( value ) ));
508 coerceValue(myDir, ( ( value ) ));
511 coerceValue(myPos2AttribName, ( ( value ) ));
514 coerceValue(myUseConstrEdges, ( ( value ) ));
517 coerceValue(myConstrEdges, ( ( value ) ));
520 coerceValue(myUseConstrPolys, ( ( value ) ));
523 coerceValue(myConstrPolys, ( ( value ) ));
526 coerceValue(myIgnorePolyBridges, ( ( value ) ));
529 coerceValue(myUseSilhouettePolys, ( ( value ) ));
532 coerceValue(mySilhouettePolys, ( ( value ) ));
535 coerceValue(myAllowConstrSplit, ( ( value ) ));
538 coerceValue(myUseExactConstruction, ( ( value ) ));
541 coerceValue(myIgnoreNonConstrPts, ( ( value ) ));
544 coerceValue(myRemoveFromConvexHull, ( ( value ) ));
547 coerceValue(myRemoveFromConstrPolys, ( ( value ) ));
550 coerceValue(myRemoveOutsideSilhouette, ( ( value ) ));
553 coerceValue(myRefine, ( ( value ) ));
556 coerceValue(myAllowRefineConstrSplits, ( ( value ) ));
559 coerceValue(myEncroachAngle, clampMinValue(90, clampMaxValue(180, value ) ));
562 coerceValue(myMinAngle, clampMinValue(0, ( value ) ));
565 coerceValue(myTriangleSize, clampMinValue(0, clampMaxValue(2, value ) ));
568 coerceValue(myMaxArea, clampMinValue(0.0000001, ( value ) ));
571 coerceValue(myTargetEdgeLength, clampMinValue(0.0001, ( value ) ));
574 coerceValue(myMinEdgeLength, ( ( value ) ));
577 coerceValue(myMaxNewPts, clampMinValue(0, ( value ) ));
580 coerceValue(myNumLloydSteps, clampMinValue(0, ( value ) ));
583 coerceValue(myAllowMovingInteriorInputPts, ( ( value ) ));
586 coerceValue(myRestorePos, ( ( value ) ));
589 coerceValue(myKeepPrims, ( ( value ) ));
592 coerceValue(myUpdateNormals, ( ( value ) ));
595 coerceValue(myRemoveUnusedPts, ( ( value ) ));
598 coerceValue(myRemoveDuplicatePts, ( ( value ) ));
601 coerceValue(myUseConstrSplitPtsGrp, ( ( value ) ));
604 coerceValue(myConstrSplitPtsGrp, ( ( value ) ));
607 coerceValue(myUseConstrdEdges, ( ( value ) ));
610 coerceValue(myConstrdEdges, ( ( value ) ));
613 coerceValue(myRandomSeed, ( ( value ) ));
620 { doSetParmValue(idx, instance, value); }
622 { doSetParmValue(idx, instance, value); }
624 { doSetParmValue(idx, instance, value); }
626 { doSetParmValue(idx, instance, value); }
628 { doSetParmValue(idx, instance, value); }
630 { doSetParmValue(idx, instance, value); }
632 { doSetParmValue(idx, instance, value); }
634 { doSetParmValue(idx, instance, value); }
636 { doSetParmValue(idx, instance, value); }
638 { doSetParmValue(idx, instance, value); }
640 { doSetParmValue(idx, instance, value); }
656 if (fieldnum.
size() < 1)
663 return "planepossrc";
673 return "useconstredges";
675 return "constredges";
677 return "useconstrpolys";
679 return "constrpolys";
681 return "ignorepolybridges";
683 return "usesilhouettepolys";
685 return "silhouettepolys";
687 return "allowconstrsplit";
689 return "useexactconstruction";
691 return "ignorenonconstrpts";
693 return "removefromconvexhull";
695 return "removefromconstrpolys";
697 return "removeoutsidesilhouette";
701 return "allowrefineonstrsplit";
703 return "encroachangle";
707 return "trianglesize";
711 return "targetedgelength";
713 return "minedgelength";
719 return "allowmovinginteriorpts";
727 return "removeunusedpoints";
729 return "removeduplicatepoints";
731 return "usecontrsplitptgrp";
733 return "constrsplitptgrp";
735 return "useconstrdedges";
737 return "constrdedges";
747 if (fieldnum.
size() < 1)
748 return PARM_UNSUPPORTED;
833 return PARM_UNSUPPORTED;
869 loadData(is, rampdata);
887 int typelen = colon - data.
buffer();
901 {
int64 iv =
v; UTwrite(os, &iv); }
903 { UTwrite<fpreal64>(os, &
v); }
905 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y()); }
907 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
908 UTwrite<fpreal64>(os, &v.
z()); }
910 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
911 UTwrite<fpreal64>(os, &v.
z()); UTwrite<fpreal64>(os, &v.
w()); }
923 if (s) s->save(ostr);
925 saveData(os, result);
932 ostr << s->getDataTypeToken();
937 saveData(os, result);
941 void save(std::ostream &os)
const
945 saveData(os, myPoints);
946 saveData(os, myPlanePosSrc);
947 saveData(os, myOrigin);
948 saveData(os, myDist);
950 saveData(os, myPos2AttribName);
951 saveData(os, myUseConstrEdges);
952 saveData(os, myConstrEdges);
953 saveData(os, myUseConstrPolys);
954 saveData(os, myConstrPolys);
955 saveData(os, myIgnorePolyBridges);
956 saveData(os, myUseSilhouettePolys);
957 saveData(os, mySilhouettePolys);
958 saveData(os, myAllowConstrSplit);
959 saveData(os, myUseExactConstruction);
960 saveData(os, myIgnoreNonConstrPts);
961 saveData(os, myRemoveFromConvexHull);
962 saveData(os, myRemoveFromConstrPolys);
963 saveData(os, myRemoveOutsideSilhouette);
964 saveData(os, myRefine);
965 saveData(os, myAllowRefineConstrSplits);
966 saveData(os, myEncroachAngle);
967 saveData(os, myMinAngle);
968 saveData(os, myTriangleSize);
969 saveData(os, myMaxArea);
970 saveData(os, myTargetEdgeLength);
971 saveData(os, myMinEdgeLength);
972 saveData(os, myMaxNewPts);
973 saveData(os, myNumLloydSteps);
974 saveData(os, myAllowMovingInteriorInputPts);
975 saveData(os, myRestorePos);
976 saveData(os, myKeepPrims);
977 saveData(os, myUpdateNormals);
978 saveData(os, myRemoveUnusedPts);
979 saveData(os, myRemoveDuplicatePts);
980 saveData(os, myUseConstrSplitPtsGrp);
981 saveData(os, myConstrSplitPtsGrp);
982 saveData(os, myUseConstrdEdges);
983 saveData(os, myConstrdEdges);
984 saveData(os, myRandomSeed);
997 loadData(is, myPoints);
998 loadData(is, myPlanePosSrc);
999 loadData(is, myOrigin);
1000 loadData(is, myDist);
1001 loadData(is, myDir);
1002 loadData(is, myPos2AttribName);
1003 loadData(is, myUseConstrEdges);
1004 loadData(is, myConstrEdges);
1005 loadData(is, myUseConstrPolys);
1006 loadData(is, myConstrPolys);
1007 loadData(is, myIgnorePolyBridges);
1008 loadData(is, myUseSilhouettePolys);
1009 loadData(is, mySilhouettePolys);
1010 loadData(is, myAllowConstrSplit);
1011 loadData(is, myUseExactConstruction);
1012 loadData(is, myIgnoreNonConstrPts);
1013 loadData(is, myRemoveFromConvexHull);
1014 loadData(is, myRemoveFromConstrPolys);
1015 loadData(is, myRemoveOutsideSilhouette);
1016 loadData(is, myRefine);
1017 loadData(is, myAllowRefineConstrSplits);
1018 loadData(is, myEncroachAngle);
1019 loadData(is, myMinAngle);
1020 loadData(is, myTriangleSize);
1021 loadData(is, myMaxArea);
1022 loadData(is, myTargetEdgeLength);
1023 loadData(is, myMinEdgeLength);
1024 loadData(is, myMaxNewPts);
1025 loadData(is, myNumLloydSteps);
1026 loadData(is, myAllowMovingInteriorInputPts);
1027 loadData(is, myRestorePos);
1028 loadData(is, myKeepPrims);
1029 loadData(is, myUpdateNormals);
1030 loadData(is, myRemoveUnusedPts);
1031 loadData(is, myRemoveDuplicatePts);
1032 loadData(is, myUseConstrSplitPtsGrp);
1033 loadData(is, myConstrSplitPtsGrp);
1034 loadData(is, myUseConstrdEdges);
1035 loadData(is, myConstrdEdges);
1036 loadData(is, myRandomSeed);
1046 if (!thissop)
return getPoints();
1048 OP_Utils::evalOpParm(result, thissop,
"points", cookparms.
getCookTime(), 0);
1056 if (!thissop)
return getPlanePosSrc();
1058 OP_Utils::evalOpParm(result, thissop,
"planepossrc", cookparms.
getCookTime(), 0);
1066 if (!thissop)
return getOrigin();
1068 OP_Utils::evalOpParm(result, thissop,
"origin", cookparms.
getCookTime(), 0);
1076 if (!thissop)
return getDist();
1078 OP_Utils::evalOpParm(result, thissop,
"dist", cookparms.
getCookTime(), 0);
1086 if (!thissop)
return getDir();
1088 OP_Utils::evalOpParm(result, thissop,
"dir", cookparms.
getCookTime(), 0);
1096 if (!thissop)
return getPos2AttribName();
1098 OP_Utils::evalOpParm(result, thissop,
"pos2attrib", cookparms.
getCookTime(), 0);
1106 if (!thissop)
return getUseConstrEdges();
1108 OP_Utils::evalOpParm(result, thissop,
"useconstredges", cookparms.
getCookTime(), 0);
1116 if (!thissop)
return getConstrEdges();
1118 OP_Utils::evalOpParm(result, thissop,
"constredges", cookparms.
getCookTime(), 0);
1126 if (!thissop)
return getUseConstrPolys();
1128 OP_Utils::evalOpParm(result, thissop,
"useconstrpolys", cookparms.
getCookTime(), 0);
1136 if (!thissop)
return getConstrPolys();
1138 OP_Utils::evalOpParm(result, thissop,
"constrpolys", cookparms.
getCookTime(), 0);
1146 if (!thissop)
return getIgnorePolyBridges();
1148 OP_Utils::evalOpParm(result, thissop,
"ignorepolybridges", cookparms.
getCookTime(), 0);
1156 if (!thissop)
return getUseSilhouettePolys();
1158 OP_Utils::evalOpParm(result, thissop,
"usesilhouettepolys", cookparms.
getCookTime(), 0);
1166 if (!thissop)
return getSilhouettePolys();
1168 OP_Utils::evalOpParm(result, thissop,
"silhouettepolys", cookparms.
getCookTime(), 0);
1176 if (!thissop)
return getAllowConstrSplit();
1178 OP_Utils::evalOpParm(result, thissop,
"allowconstrsplit", cookparms.
getCookTime(), 0);
1186 if (!thissop)
return getUseExactConstruction();
1188 OP_Utils::evalOpParm(result, thissop,
"useexactconstruction", cookparms.
getCookTime(), 0);
1196 if (!thissop)
return getIgnoreNonConstrPts();
1198 OP_Utils::evalOpParm(result, thissop,
"ignorenonconstrpts", cookparms.
getCookTime(), 0);
1206 if (!thissop)
return getRemoveFromConvexHull();
1208 OP_Utils::evalOpParm(result, thissop,
"removefromconvexhull", cookparms.
getCookTime(), 0);
1216 if (!thissop)
return getRemoveFromConstrPolys();
1218 OP_Utils::evalOpParm(result, thissop,
"removefromconstrpolys", cookparms.
getCookTime(), 0);
1226 if (!thissop)
return getRemoveOutsideSilhouette();
1228 OP_Utils::evalOpParm(result, thissop,
"removeoutsidesilhouette", cookparms.
getCookTime(), 0);
1236 if (!thissop)
return getRefine();
1238 OP_Utils::evalOpParm(result, thissop,
"refine", cookparms.
getCookTime(), 0);
1246 if (!thissop)
return getAllowRefineConstrSplits();
1248 OP_Utils::evalOpParm(result, thissop,
"allowrefineonstrsplit", cookparms.
getCookTime(), 0);
1256 if (!thissop)
return getEncroachAngle();
1258 OP_Utils::evalOpParm(result, thissop,
"encroachangle", cookparms.
getCookTime(), 0);
1266 if (!thissop)
return getMinAngle();
1268 OP_Utils::evalOpParm(result, thissop,
"minangle", cookparms.
getCookTime(), 0);
1276 if (!thissop)
return getTriangleSize();
1278 OP_Utils::evalOpParm(result, thissop,
"trianglesize", cookparms.
getCookTime(), 0);
1286 if (!thissop)
return getMaxArea();
1288 OP_Utils::evalOpParm(result, thissop,
"maxarea", cookparms.
getCookTime(), 0);
1296 if (!thissop)
return getTargetEdgeLength();
1298 OP_Utils::evalOpParm(result, thissop,
"targetedgelength", cookparms.
getCookTime(), 0);
1306 if (!thissop)
return getMinEdgeLength();
1308 OP_Utils::evalOpParm(result, thissop,
"minedgelength", cookparms.
getCookTime(), 0);
1316 if (!thissop)
return getMaxNewPts();
1318 OP_Utils::evalOpParm(result, thissop,
"maxnewpts", cookparms.
getCookTime(), 0);
1326 if (!thissop)
return getNumLloydSteps();
1328 OP_Utils::evalOpParm(result, thissop,
"lloydsteps", cookparms.
getCookTime(), 0);
1336 if (!thissop)
return getAllowMovingInteriorInputPts();
1338 OP_Utils::evalOpParm(result, thissop,
"allowmovinginteriorpts", cookparms.
getCookTime(), 0);
1346 if (!thissop)
return getRestorePos();
1348 OP_Utils::evalOpParm(result, thissop,
"restorepos", cookparms.
getCookTime(), 0);
1356 if (!thissop)
return getKeepPrims();
1358 OP_Utils::evalOpParm(result, thissop,
"keepprims", cookparms.
getCookTime(), 0);
1366 if (!thissop)
return getUpdateNormals();
1368 OP_Utils::evalOpParm(result, thissop,
"updatenmls", cookparms.
getCookTime(), 0);
1376 if (!thissop)
return getRemoveUnusedPts();
1378 OP_Utils::evalOpParm(result, thissop,
"removeunusedpoints", cookparms.
getCookTime(), 0);
1386 if (!thissop)
return getRemoveDuplicatePts();
1388 OP_Utils::evalOpParm(result, thissop,
"removeduplicatepoints", cookparms.
getCookTime(), 0);
1396 if (!thissop)
return getUseConstrSplitPtsGrp();
1398 OP_Utils::evalOpParm(result, thissop,
"usecontrsplitptgrp", cookparms.
getCookTime(), 0);
1406 if (!thissop)
return getConstrSplitPtsGrp();
1408 OP_Utils::evalOpParm(result, thissop,
"constrsplitptgrp", cookparms.
getCookTime(), 0);
1416 if (!thissop)
return getUseConstrdEdges();
1418 OP_Utils::evalOpParm(result, thissop,
"useconstrdedges", cookparms.
getCookTime(), 0);
1426 if (!thissop)
return getConstrdEdges();
1428 OP_Utils::evalOpParm(result, thissop,
"constrdedges", cookparms.
getCookTime(), 0);
1436 if (!thissop)
return getRandomSeed();
1438 OP_Utils::evalOpParm(result, thissop,
"randseed", cookparms.
getCookTime(), 0);
1444 int64 myPlanePosSrc;
1449 bool myUseConstrEdges;
1451 bool myUseConstrPolys;
1453 bool myIgnorePolyBridges;
1454 bool myUseSilhouettePolys;
1456 bool myAllowConstrSplit;
1457 bool myUseExactConstruction;
1458 bool myIgnoreNonConstrPts;
1459 bool myRemoveFromConvexHull;
1460 bool myRemoveFromConstrPolys;
1461 bool myRemoveOutsideSilhouette;
1463 bool myAllowRefineConstrSplits;
1466 int64 myTriangleSize;
1471 int64 myNumLloydSteps;
1472 bool myAllowMovingInteriorInputPts;
1475 bool myUpdateNormals;
1476 bool myRemoveUnusedPts;
1477 bool myRemoveDuplicatePts;
1478 bool myUseConstrSplitPtsGrp;
1480 bool myUseConstrdEdges;
UT_StringHolder opConstrPolys(const SOP_NodeVerb::CookParms &cookparms) const
TriangleSize opTriangleSize(const SOP_NodeVerb::CookParms &cookparms) const
int64 getRandomSeed() const
bool load(UT_IStream &is)
fpreal64 opMaxArea(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 opMinEdgeLength(const SOP_NodeVerb::CookParms &cookparms) const
PlanePosSrc opPlanePosSrc(const SOP_NodeVerb::CookParms &cookparms) const
void setConstrPolys(const UT_StringHolder &val)
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
static void saveData(std::ostream &os, UT_Vector3D v)
bool getIgnorePolyBridges() const
void setUpdateNormals(bool val)
fpreal64 getMinAngle() const
bool opUseConstrEdges(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
SOP_Node * getNode() const
void loadFromOpSubclass(const LoadParms &loadparms) override
int64 opRandomSeed(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
PlanePosSrc getPlanePosSrc() const
UT_StringHolder opConstrdEdges(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
static void loadData(UT_IStream &is, UT_Matrix2D &v)
bool getUseSilhouettePolys() const
const char * getNestParmName(TempIndex fieldnum) const override
bool opKeepPrims(const SOP_NodeVerb::CookParms &cookparms) const
exint bread(int32 *buffer, exint asize=1)
static void loadData(UT_IStream &is, UT_Vector4I &v)
void copyFrom(const OP_NodeParms *src) override
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
bool opRemoveFromConvexHull(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
UT_StringHolder opPos2AttribName(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 opMinAngle(const SOP_NodeVerb::CookParms &cookparms) const
bool getRestorePos() const
void setMaxNewPts(int64 val)
void setUseSilhouettePolys(bool val)
void setUseConstrPolys(bool val)
bool operator!=(const SOP_Triangulate2D_3_0Parms &src) const
bool getUpdateNormals() const
GLsizei const GLfloat * value
UT_Vector3D getDir() const
static void saveData(std::ostream &os, UT_Matrix4D v)
const UT_StringHolder & getConstrEdges() const
const OP_Context & context() const
bool opAllowConstrSplit(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 getTargetEdgeLength() const
constexpr SYS_FORCE_INLINE T & z() noexcept
void setRemoveOutsideSilhouette(bool val)
SYS_FORCE_INLINE const char * buffer() const
bool opUpdateNormals(const SOP_NodeVerb::CookParms &cookparms) const
void setPoints(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_StringHolder &v)
An output stream object that owns its own string buffer storage.
static void saveData(std::ostream &os, UT_Matrix3D v)
void setTargetEdgeLength(fpreal64 val)
exint getNestNumParms(TempIndex idx) const override
ParmType getNestParmType(TempIndex fieldnum) const override
**But if you need a result
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
void setRemoveFromConstrPolys(bool val)
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
bool getIgnoreNonConstrPts() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
void save(std::ostream &os) const
static void loadData(UT_IStream &is, bool &v)
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
bool opAllowRefineConstrSplits(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void setRemoveFromConvexHull(bool val)
void setEncroachAngle(fpreal64 val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
constexpr SYS_FORCE_INLINE T & x() noexcept
UT_Vector3D opOrigin(const SOP_NodeVerb::CookParms &cookparms) const
bool getRemoveFromConvexHull() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
bool opAllowMovingInteriorInputPts(const SOP_NodeVerb::CookParms &cookparms) const
bool getUseConstrPolys() const
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
UT_Vector3D getOrigin() const
fpreal64 opEncroachAngle(const SOP_NodeVerb::CookParms &cookparms) const
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
void setUseConstrEdges(bool val)
constexpr SYS_FORCE_INLINE T & x() noexcept
fpreal64 opTargetEdgeLength(const SOP_NodeVerb::CookParms &cookparms) const
void setRemoveDuplicatePts(bool val)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
bool getRemoveUnusedPts() const
static void saveData(std::ostream &os, UT_Matrix2D v)
int64 getNumLloydSteps() const
void setUseConstrdEdges(bool val)
const UT_StringHolder & getPoints() const
int64 getMaxNewPts() const
void setIgnoreNonConstrPts(bool val)
void setKeepPrims(bool val)
void setMinAngle(fpreal64 val)
void setSilhouettePolys(const UT_StringHolder &val)
fpreal64 getMaxArea() const
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
void setMinEdgeLength(fpreal64 val)
UT_StringHolder opConstrSplitPtsGrp(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & z() noexcept
bool opRemoveOutsideSilhouette(const SOP_NodeVerb::CookParms &cookparms) const
void setPlanePosSrc(PlanePosSrc val)
bool getUseConstrdEdges() const
void setConstrdEdges(const UT_StringHolder &val)
bool opRemoveFromConstrPolys(const SOP_NodeVerb::CookParms &cookparms) const
const OP_GraphProxy * graph() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
SYS_FORCE_INLINE UT_StringHolder getToken(PlanePosSrc enum_value)
static void loadData(UT_IStream &is, UT_Vector3D &v)
void setTriangleSize(TriangleSize val)
void setDist(fpreal64 val)
static void loadData(UT_IStream &is, UT_Vector2D &v)
const UT_StringHolder & getSilhouettePolys() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void setAllowRefineConstrSplits(bool val)
bool getRemoveOutsideSilhouette() const
bool opRefine(const SOP_NodeVerb::CookParms &cookparms) const
SOP_Triangulate2D_3_0Parms()
UT_Vector3T< fpreal64 > UT_Vector3D
static void loadData(UT_IStream &is, int64 &v)
const UT_StringHolder & getPos2AttribName() const
const UT_StringHolder & getConstrdEdges() const
void setConstrEdges(const UT_StringHolder &val)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
static void saveData(std::ostream &os, PRM_DataItemHandle s)
const UT_StringHolder & getConstrSplitPtsGrp() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
static void loadData(UT_IStream &is, UT_Vector3I &v)
static void saveData(std::ostream &os, UT_Vector4D v)
void saveBinary(std::ostream &os) const
Save string to binary stream.
void setMaxArea(fpreal64 val)
bool operator==(const SOP_Triangulate2D_3_0Parms &src) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
GT_API const UT_StringHolder version
static void saveData(std::ostream &os, int64 v)
TriangleSize getTriangleSize() const
static void loadData(UT_IStream &is, fpreal64 &v)
void setRemoveUnusedPts(bool val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
static void saveData(std::ostream &os, UT_Vector2D v)
UT_Vector3D opDir(const SOP_NodeVerb::CookParms &cookparms) const
void setRestorePos(bool val)
void setOrigin(UT_Vector3D val)
bool opIgnorePolyBridges(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
bool opUseExactConstruction(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opPoints(const SOP_NodeVerb::CookParms &cookparms) const
bool opUseConstrSplitPtsGrp(const SOP_NodeVerb::CookParms &cookparms) const
int64 opNumLloydSteps(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 opDist(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix3D &v)
bool opRestorePos(const SOP_NodeVerb::CookParms &cookparms) const
void setPos2AttribName(const UT_StringHolder &val)
fpreal64 getMinEdgeLength() const
bool opRemoveDuplicatePts(const SOP_NodeVerb::CookParms &cookparms) const
bool opUseConstrdEdges(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opSilhouettePolys(const SOP_NodeVerb::CookParms &cookparms) const
DEP_MicroNode * depnode() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
bool getUseExactConstruction() const
LeafData & operator=(const LeafData &)=delete
Utility class for containing a color ramp.
void setIgnorePolyBridges(bool val)
bool opRemoveUnusedPts(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 getEncroachAngle() const
bool getRemoveFromConstrPolys() const
bool opUseSilhouettePolys(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & w() noexcept
bool getUseConstrSplitPtsGrp() const
const UT_StringHolder & getConstrPolys() const
virtual UT_StringHolder baseGetSignature() const
void setNumLloydSteps(int64 val)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
fpreal getCookTime() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
const char * findChar(int c) const
bool getAllowMovingInteriorInputPts() const
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
bool getKeepPrims() const
bool opIgnoreNonConstrPts(const SOP_NodeVerb::CookParms &cookparms) const
void setUseExactConstruction(bool val)
static void loadData(UT_IStream &is, UT_Vector2I &v)
static void saveData(std::ostream &os, fpreal64 v)
bool opUseConstrPolys(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & y() noexcept
static void saveData(std::ostream &os, UT_StringHolder s)
void setRandomSeed(int64 val)
bool isParmColorRamp(exint idx) const override
static void saveData(std::ostream &os, bool v)
bool getAllowConstrSplit() const
static void loadData(UT_IStream &is, UT_Vector4D &v)
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
UT_StringHolder opConstrEdges(const SOP_NodeVerb::CookParms &cookparms) const
int64 opMaxNewPts(const SOP_NodeVerb::CookParms &cookparms) const
void setUseConstrSplitPtsGrp(bool val)
void setDir(UT_Vector3D val)
bool getAllowRefineConstrSplits() const
constexpr SYS_FORCE_INLINE T & y() noexcept
SYS_FORCE_INLINE bool isstring() const
bool getRemoveDuplicatePts() const
void setAllowConstrSplit(bool val)
void setConstrSplitPtsGrp(const UT_StringHolder &val)
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
void setAllowMovingInteriorInputPts(bool val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
constexpr SYS_FORCE_INLINE T & x() noexcept
bool getUseConstrEdges() const