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;
181 graph->
evalOpParm(myPoints, nodeidx,
"points", time, 0);
184 graph->
evalOpParm(myPlanePosSrc, nodeidx,
"planepossrc", time, 0);
186 if (
true && ( (
true&&!(((
int64(getPlanePosSrc())!=1)))) ) )
187 graph->
evalOpParm(myOrigin, nodeidx,
"origin", time, 0);
189 if (
true && ( (
true&&!(((
int64(getPlanePosSrc())!=1)))) ) )
190 graph->
evalOpParm(myDist, nodeidx,
"dist", time, 0);
192 if (
true && ( (
true&&!(((
int64(getPlanePosSrc())!=1)))) ) )
193 graph->
evalOpParm(myDir, nodeidx,
"dir", time, 0);
194 myPos2AttribName =
""_UTsh;
195 if (
true && ( (
true&&!(((
int64(getPlanePosSrc())!=2)))) ) )
196 graph->
evalOpParm(myPos2AttribName, nodeidx,
"pos2attrib", time, 0);
197 myUseConstrEdges =
false;
199 graph->
evalOpParm(myUseConstrEdges, nodeidx,
"useconstredges", time, 0);
200 myConstrEdges =
""_UTsh;
201 if (
true && ( (
true&&!(((getUseConstrEdges()==0)))) ) )
202 graph->
evalOpParm(myConstrEdges, nodeidx,
"constredges", time, 0);
203 myUseConstrPolys =
false;
205 graph->
evalOpParm(myUseConstrPolys, nodeidx,
"useconstrpolys", time, 0);
206 myConstrPolys =
""_UTsh;
207 if (
true && ( (
true&&!(((getUseConstrPolys()==0)))) ) )
208 graph->
evalOpParm(myConstrPolys, nodeidx,
"constrpolys", time, 0);
209 myIgnorePolyBridges =
false;
210 if (
true && ( (
true&&!(((getUseConstrPolys()==0)))) ) )
211 graph->
evalOpParm(myIgnorePolyBridges, nodeidx,
"ignorepolybridges", time, 0);
212 myUseSilhouettePolys =
false;
214 graph->
evalOpParm(myUseSilhouettePolys, nodeidx,
"usesilhouettepolys", time, 0);
215 mySilhouettePolys =
""_UTsh;
216 if (
true && ( (
true&&!(((getUseSilhouettePolys()==0)))) ) )
217 graph->
evalOpParm(mySilhouettePolys, nodeidx,
"silhouettepolys", time, 0);
218 myAllowConstrSplit =
true;
220 graph->
evalOpParm(myAllowConstrSplit, nodeidx,
"allowconstrsplit", time, 0);
221 myUseExactConstruction =
false;
222 if (
true && ( (
true&&!(((getAllowConstrSplit()==0)))) ) )
223 graph->
evalOpParm(myUseExactConstruction, nodeidx,
"useexactconstruction", time, 0);
224 myIgnoreNonConstrPts =
false;
225 if (
true && ( (
true&&!(((getUseConstrEdges()==0)&&(getUseConstrPolys()==0)&&(getUseSilhouettePolys()==0)))) ) )
226 graph->
evalOpParm(myIgnoreNonConstrPts, nodeidx,
"ignorenonconstrpts", time, 0);
227 myRemoveFromConvexHull =
false;
228 if (
true && ( (
true&&!(((getUseConstrEdges()==0)&&(getUseConstrPolys()==0)&&(getUseSilhouettePolys()==0)))) ) )
229 graph->
evalOpParm(myRemoveFromConvexHull, nodeidx,
"removefromconvexhull", time, 0);
230 myRemoveFromConstrPolys =
false;
231 if (
true && ( (
true&&!(((getUseConstrPolys()==0)))) ) )
232 graph->
evalOpParm(myRemoveFromConstrPolys, nodeidx,
"removefromconstrpolys", time, 0);
233 myRemoveOutsideSilhouette =
false;
234 if (
true && ( (
true&&!(((getUseSilhouettePolys()==0)))) ) )
235 graph->
evalOpParm(myRemoveOutsideSilhouette, nodeidx,
"removeoutsidesilhouette", time, 0);
238 graph->
evalOpParm(myRefine, nodeidx,
"refine", time, 0);
239 myAllowRefineConstrSplits =
true;
241 graph->
evalOpParm(myAllowRefineConstrSplits, nodeidx,
"allowrefineonstrsplit", time, 0);
242 myEncroachAngle = 180;
243 if (
true && ( (
true&&!(((getAllowRefineConstrSplits()==1)))) ) )
244 graph->
evalOpParm(myEncroachAngle, nodeidx,
"encroachangle", time, 0);
246 if (
true && ( (
true&&!(((getRefine()==0)))) ) )
247 graph->
evalOpParm(myMinAngle, nodeidx,
"minangle", time, 0);
249 if (
true && ( (
true&&!(((getRefine()==0)))) ) )
250 graph->
evalOpParm(myTriangleSize, nodeidx,
"trianglesize", time, 0);
252 if (
true && ( (
true&&!(((
int64(getTriangleSize())!=1))||((getRefine()==0)))) ) )
253 graph->
evalOpParm(myMaxArea, nodeidx,
"maxarea", time, 0);
254 myTargetEdgeLength = 100;
255 if (
true && ( (
true&&!(((
int64(getTriangleSize())!=2))||((getRefine()==0)))) ) )
256 graph->
evalOpParm(myTargetEdgeLength, nodeidx,
"targetedgelength", time, 0);
257 myMinEdgeLength = 0.0001;
258 if (
true && ( (
true&&!(((getRefine()==0)))) ) )
259 graph->
evalOpParm(myMinEdgeLength, nodeidx,
"minedgelength", time, 0);
261 if (
true && ( (
true&&!(((getRefine()==0)))) ) )
262 graph->
evalOpParm(myMaxNewPts, nodeidx,
"maxnewpts", time, 0);
264 if (
true && ( (
true&&!(((getRefine()==0)))) ) )
265 graph->
evalOpParm(myNumLloydSteps, nodeidx,
"lloydsteps", time, 0);
266 myAllowMovingInteriorInputPts =
false;
267 if (
true && ( (
true&&!(((getRefine()==0))||((
int64(getNumLloydSteps())==0)))) ) )
268 graph->
evalOpParm(myAllowMovingInteriorInputPts, nodeidx,
"allowmovinginteriorpts", time, 0);
269 myRestorePos =
false;
271 graph->
evalOpParm(myRestorePos, nodeidx,
"restorepos", time, 0);
274 graph->
evalOpParm(myKeepPrims, nodeidx,
"keepprims", time, 0);
275 myUpdateNormals =
true;
277 graph->
evalOpParm(myUpdateNormals, nodeidx,
"updatenmls", time, 0);
278 myRemoveUnusedPts =
true;
280 graph->
evalOpParm(myRemoveUnusedPts, nodeidx,
"removeunusedpoints", time, 0);
281 myRemoveDuplicatePts =
true;
283 graph->
evalOpParm(myRemoveDuplicatePts, nodeidx,
"removeduplicatepoints", time, 0);
284 myUseConstrSplitPtsGrp =
false;
285 if (
true && ( (
true&&!(((getAllowConstrSplit()==0)))) ) )
286 graph->
evalOpParm(myUseConstrSplitPtsGrp, nodeidx,
"usecontrsplitptgrp", time, 0);
287 myConstrSplitPtsGrp =
"constrsplitpts"_UTsh;
288 if (
true && ( (
true&&!(((getUseConstrSplitPtsGrp()==0)))) ) )
289 graph->
evalOpParm(myConstrSplitPtsGrp, nodeidx,
"constrsplitptgrp", time, 0);
290 myUseConstrdEdges =
false;
292 graph->
evalOpParm(myUseConstrdEdges, nodeidx,
"useconstrdedges", time, 0);
293 myConstrdEdges =
"constrdedges"_UTsh;
294 if (
true && ( (
true&&!(((getUseConstrdEdges()==0)))) ) )
295 graph->
evalOpParm(myConstrdEdges, nodeidx,
"constrdedges", time, 0);
298 graph->
evalOpParm(myRandomSeed, nodeidx,
"randseed", time, 0);
314 template <
typename T>
321 if (idx.
size() != instance.
size()+1)
326 coerceValue(value, myPoints);
329 coerceValue(value, myPlanePosSrc);
332 coerceValue(value, myOrigin);
335 coerceValue(value, myDist);
338 coerceValue(value, myDir);
341 coerceValue(value, myPos2AttribName);
344 coerceValue(value, myUseConstrEdges);
347 coerceValue(value, myConstrEdges);
350 coerceValue(value, myUseConstrPolys);
353 coerceValue(value, myConstrPolys);
356 coerceValue(value, myIgnorePolyBridges);
359 coerceValue(value, myUseSilhouettePolys);
362 coerceValue(value, mySilhouettePolys);
365 coerceValue(value, myAllowConstrSplit);
368 coerceValue(value, myUseExactConstruction);
371 coerceValue(value, myIgnoreNonConstrPts);
374 coerceValue(value, myRemoveFromConvexHull);
377 coerceValue(value, myRemoveFromConstrPolys);
380 coerceValue(value, myRemoveOutsideSilhouette);
383 coerceValue(value, myRefine);
386 coerceValue(value, myAllowRefineConstrSplits);
389 coerceValue(value, myEncroachAngle);
392 coerceValue(value, myMinAngle);
395 coerceValue(value, myTriangleSize);
398 coerceValue(value, myMaxArea);
401 coerceValue(value, myTargetEdgeLength);
404 coerceValue(value, myMinEdgeLength);
407 coerceValue(value, myMaxNewPts);
410 coerceValue(value, myNumLloydSteps);
413 coerceValue(value, myAllowMovingInteriorInputPts);
416 coerceValue(value, myRestorePos);
419 coerceValue(value, myKeepPrims);
422 coerceValue(value, myUpdateNormals);
425 coerceValue(value, myRemoveUnusedPts);
428 coerceValue(value, myRemoveDuplicatePts);
431 coerceValue(value, myUseConstrSplitPtsGrp);
434 coerceValue(value, myConstrSplitPtsGrp);
437 coerceValue(value, myUseConstrdEdges);
440 coerceValue(value, myConstrdEdges);
443 coerceValue(value, myRandomSeed);
459 { doGetParmValue(idx, instance, value); }
461 { doGetParmValue(idx, instance, value); }
463 { doGetParmValue(idx, instance, value); }
465 { doGetParmValue(idx, instance, value); }
467 { doGetParmValue(idx, instance, value); }
469 { doGetParmValue(idx, instance, value); }
471 { doGetParmValue(idx, instance, value); }
473 { doGetParmValue(idx, instance, value); }
475 { doGetParmValue(idx, instance, value); }
477 { doGetParmValue(idx, instance, value); }
479 { doGetParmValue(idx, instance, value); }
481 template <
typename T>
488 if (idx.
size() != instance.
size()+1)
493 coerceValue(myPoints, ( ( value ) ));
496 coerceValue(myPlanePosSrc, clampMinValue(0, clampMaxValue(2, value ) ));
499 coerceValue(myOrigin, ( ( value ) ));
502 coerceValue(myDist, ( ( value ) ));
505 coerceValue(myDir, ( ( value ) ));
508 coerceValue(myPos2AttribName, ( ( value ) ));
511 coerceValue(myUseConstrEdges, ( ( value ) ));
514 coerceValue(myConstrEdges, ( ( value ) ));
517 coerceValue(myUseConstrPolys, ( ( value ) ));
520 coerceValue(myConstrPolys, ( ( value ) ));
523 coerceValue(myIgnorePolyBridges, ( ( value ) ));
526 coerceValue(myUseSilhouettePolys, ( ( value ) ));
529 coerceValue(mySilhouettePolys, ( ( value ) ));
532 coerceValue(myAllowConstrSplit, ( ( value ) ));
535 coerceValue(myUseExactConstruction, ( ( value ) ));
538 coerceValue(myIgnoreNonConstrPts, ( ( value ) ));
541 coerceValue(myRemoveFromConvexHull, ( ( value ) ));
544 coerceValue(myRemoveFromConstrPolys, ( ( value ) ));
547 coerceValue(myRemoveOutsideSilhouette, ( ( value ) ));
550 coerceValue(myRefine, ( ( value ) ));
553 coerceValue(myAllowRefineConstrSplits, ( ( value ) ));
556 coerceValue(myEncroachAngle, clampMinValue(90, clampMaxValue(180, value ) ));
559 coerceValue(myMinAngle, clampMinValue(0, ( value ) ));
562 coerceValue(myTriangleSize, clampMinValue(0, clampMaxValue(2, value ) ));
565 coerceValue(myMaxArea, clampMinValue(0.0000001, ( value ) ));
568 coerceValue(myTargetEdgeLength, clampMinValue(0.0001, ( value ) ));
571 coerceValue(myMinEdgeLength, ( ( value ) ));
574 coerceValue(myMaxNewPts, clampMinValue(0, ( value ) ));
577 coerceValue(myNumLloydSteps, clampMinValue(0, ( value ) ));
580 coerceValue(myAllowMovingInteriorInputPts, ( ( value ) ));
583 coerceValue(myRestorePos, ( ( value ) ));
586 coerceValue(myKeepPrims, ( ( value ) ));
589 coerceValue(myUpdateNormals, ( ( value ) ));
592 coerceValue(myRemoveUnusedPts, ( ( value ) ));
595 coerceValue(myRemoveDuplicatePts, ( ( value ) ));
598 coerceValue(myUseConstrSplitPtsGrp, ( ( value ) ));
601 coerceValue(myConstrSplitPtsGrp, ( ( value ) ));
604 coerceValue(myUseConstrdEdges, ( ( value ) ));
607 coerceValue(myConstrdEdges, ( ( value ) ));
610 coerceValue(myRandomSeed, ( ( value ) ));
617 { doSetParmValue(idx, instance, value); }
619 { doSetParmValue(idx, instance, value); }
621 { doSetParmValue(idx, instance, value); }
623 { doSetParmValue(idx, instance, value); }
625 { doSetParmValue(idx, instance, value); }
627 { doSetParmValue(idx, instance, value); }
629 { doSetParmValue(idx, instance, value); }
631 { doSetParmValue(idx, instance, value); }
633 { doSetParmValue(idx, instance, value); }
635 { doSetParmValue(idx, instance, value); }
637 { doSetParmValue(idx, instance, value); }
653 if (fieldnum.
size() < 1)
660 return "planepossrc";
670 return "useconstredges";
672 return "constredges";
674 return "useconstrpolys";
676 return "constrpolys";
678 return "ignorepolybridges";
680 return "usesilhouettepolys";
682 return "silhouettepolys";
684 return "allowconstrsplit";
686 return "useexactconstruction";
688 return "ignorenonconstrpts";
690 return "removefromconvexhull";
692 return "removefromconstrpolys";
694 return "removeoutsidesilhouette";
698 return "allowrefineonstrsplit";
700 return "encroachangle";
704 return "trianglesize";
708 return "targetedgelength";
710 return "minedgelength";
716 return "allowmovinginteriorpts";
724 return "removeunusedpoints";
726 return "removeduplicatepoints";
728 return "usecontrsplitptgrp";
730 return "constrsplitptgrp";
732 return "useconstrdedges";
734 return "constrdedges";
744 if (fieldnum.
size() < 1)
745 return PARM_UNSUPPORTED;
830 return PARM_UNSUPPORTED;
866 loadData(is, rampdata);
884 int typelen = colon - data.
buffer();
898 {
int64 iv =
v; UTwrite(os, &iv); }
900 { UTwrite<fpreal64>(os, &
v); }
902 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y()); }
904 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
905 UTwrite<fpreal64>(os, &v.
z()); }
907 { UTwrite<fpreal64>(os, &v.
x()); UTwrite<fpreal64>(os, &v.
y());
908 UTwrite<fpreal64>(os, &v.
z()); UTwrite<fpreal64>(os, &v.
w()); }
920 if (s) s->save(ostr);
922 saveData(os, result);
929 ostr << s->getDataTypeToken();
934 saveData(os, result);
938 void save(std::ostream &os)
const
942 saveData(os, myPoints);
943 saveData(os, myPlanePosSrc);
944 saveData(os, myOrigin);
945 saveData(os, myDist);
947 saveData(os, myPos2AttribName);
948 saveData(os, myUseConstrEdges);
949 saveData(os, myConstrEdges);
950 saveData(os, myUseConstrPolys);
951 saveData(os, myConstrPolys);
952 saveData(os, myIgnorePolyBridges);
953 saveData(os, myUseSilhouettePolys);
954 saveData(os, mySilhouettePolys);
955 saveData(os, myAllowConstrSplit);
956 saveData(os, myUseExactConstruction);
957 saveData(os, myIgnoreNonConstrPts);
958 saveData(os, myRemoveFromConvexHull);
959 saveData(os, myRemoveFromConstrPolys);
960 saveData(os, myRemoveOutsideSilhouette);
961 saveData(os, myRefine);
962 saveData(os, myAllowRefineConstrSplits);
963 saveData(os, myEncroachAngle);
964 saveData(os, myMinAngle);
965 saveData(os, myTriangleSize);
966 saveData(os, myMaxArea);
967 saveData(os, myTargetEdgeLength);
968 saveData(os, myMinEdgeLength);
969 saveData(os, myMaxNewPts);
970 saveData(os, myNumLloydSteps);
971 saveData(os, myAllowMovingInteriorInputPts);
972 saveData(os, myRestorePos);
973 saveData(os, myKeepPrims);
974 saveData(os, myUpdateNormals);
975 saveData(os, myRemoveUnusedPts);
976 saveData(os, myRemoveDuplicatePts);
977 saveData(os, myUseConstrSplitPtsGrp);
978 saveData(os, myConstrSplitPtsGrp);
979 saveData(os, myUseConstrdEdges);
980 saveData(os, myConstrdEdges);
981 saveData(os, myRandomSeed);
994 loadData(is, myPoints);
995 loadData(is, myPlanePosSrc);
996 loadData(is, myOrigin);
997 loadData(is, myDist);
999 loadData(is, myPos2AttribName);
1000 loadData(is, myUseConstrEdges);
1001 loadData(is, myConstrEdges);
1002 loadData(is, myUseConstrPolys);
1003 loadData(is, myConstrPolys);
1004 loadData(is, myIgnorePolyBridges);
1005 loadData(is, myUseSilhouettePolys);
1006 loadData(is, mySilhouettePolys);
1007 loadData(is, myAllowConstrSplit);
1008 loadData(is, myUseExactConstruction);
1009 loadData(is, myIgnoreNonConstrPts);
1010 loadData(is, myRemoveFromConvexHull);
1011 loadData(is, myRemoveFromConstrPolys);
1012 loadData(is, myRemoveOutsideSilhouette);
1013 loadData(is, myRefine);
1014 loadData(is, myAllowRefineConstrSplits);
1015 loadData(is, myEncroachAngle);
1016 loadData(is, myMinAngle);
1017 loadData(is, myTriangleSize);
1018 loadData(is, myMaxArea);
1019 loadData(is, myTargetEdgeLength);
1020 loadData(is, myMinEdgeLength);
1021 loadData(is, myMaxNewPts);
1022 loadData(is, myNumLloydSteps);
1023 loadData(is, myAllowMovingInteriorInputPts);
1024 loadData(is, myRestorePos);
1025 loadData(is, myKeepPrims);
1026 loadData(is, myUpdateNormals);
1027 loadData(is, myRemoveUnusedPts);
1028 loadData(is, myRemoveDuplicatePts);
1029 loadData(is, myUseConstrSplitPtsGrp);
1030 loadData(is, myConstrSplitPtsGrp);
1031 loadData(is, myUseConstrdEdges);
1032 loadData(is, myConstrdEdges);
1033 loadData(is, myRandomSeed);
1043 if (!thissop)
return getPoints();
1045 OP_Utils::evalOpParm(result, thissop,
"points", cookparms.
getCookTime(), 0);
1053 if (!thissop)
return getPlanePosSrc();
1055 OP_Utils::evalOpParm(result, thissop,
"planepossrc", cookparms.
getCookTime(), 0);
1063 if (!thissop)
return getOrigin();
1065 OP_Utils::evalOpParm(result, thissop,
"origin", cookparms.
getCookTime(), 0);
1073 if (!thissop)
return getDist();
1075 OP_Utils::evalOpParm(result, thissop,
"dist", cookparms.
getCookTime(), 0);
1083 if (!thissop)
return getDir();
1085 OP_Utils::evalOpParm(result, thissop,
"dir", cookparms.
getCookTime(), 0);
1093 if (!thissop)
return getPos2AttribName();
1095 OP_Utils::evalOpParm(result, thissop,
"pos2attrib", cookparms.
getCookTime(), 0);
1103 if (!thissop)
return getUseConstrEdges();
1105 OP_Utils::evalOpParm(result, thissop,
"useconstredges", cookparms.
getCookTime(), 0);
1113 if (!thissop)
return getConstrEdges();
1115 OP_Utils::evalOpParm(result, thissop,
"constredges", cookparms.
getCookTime(), 0);
1123 if (!thissop)
return getUseConstrPolys();
1125 OP_Utils::evalOpParm(result, thissop,
"useconstrpolys", cookparms.
getCookTime(), 0);
1133 if (!thissop)
return getConstrPolys();
1135 OP_Utils::evalOpParm(result, thissop,
"constrpolys", cookparms.
getCookTime(), 0);
1143 if (!thissop)
return getIgnorePolyBridges();
1145 OP_Utils::evalOpParm(result, thissop,
"ignorepolybridges", cookparms.
getCookTime(), 0);
1153 if (!thissop)
return getUseSilhouettePolys();
1155 OP_Utils::evalOpParm(result, thissop,
"usesilhouettepolys", cookparms.
getCookTime(), 0);
1163 if (!thissop)
return getSilhouettePolys();
1165 OP_Utils::evalOpParm(result, thissop,
"silhouettepolys", cookparms.
getCookTime(), 0);
1173 if (!thissop)
return getAllowConstrSplit();
1175 OP_Utils::evalOpParm(result, thissop,
"allowconstrsplit", cookparms.
getCookTime(), 0);
1183 if (!thissop)
return getUseExactConstruction();
1185 OP_Utils::evalOpParm(result, thissop,
"useexactconstruction", cookparms.
getCookTime(), 0);
1193 if (!thissop)
return getIgnoreNonConstrPts();
1195 OP_Utils::evalOpParm(result, thissop,
"ignorenonconstrpts", cookparms.
getCookTime(), 0);
1203 if (!thissop)
return getRemoveFromConvexHull();
1205 OP_Utils::evalOpParm(result, thissop,
"removefromconvexhull", cookparms.
getCookTime(), 0);
1213 if (!thissop)
return getRemoveFromConstrPolys();
1215 OP_Utils::evalOpParm(result, thissop,
"removefromconstrpolys", cookparms.
getCookTime(), 0);
1223 if (!thissop)
return getRemoveOutsideSilhouette();
1225 OP_Utils::evalOpParm(result, thissop,
"removeoutsidesilhouette", cookparms.
getCookTime(), 0);
1233 if (!thissop)
return getRefine();
1235 OP_Utils::evalOpParm(result, thissop,
"refine", cookparms.
getCookTime(), 0);
1243 if (!thissop)
return getAllowRefineConstrSplits();
1245 OP_Utils::evalOpParm(result, thissop,
"allowrefineonstrsplit", cookparms.
getCookTime(), 0);
1253 if (!thissop)
return getEncroachAngle();
1255 OP_Utils::evalOpParm(result, thissop,
"encroachangle", cookparms.
getCookTime(), 0);
1263 if (!thissop)
return getMinAngle();
1265 OP_Utils::evalOpParm(result, thissop,
"minangle", cookparms.
getCookTime(), 0);
1273 if (!thissop)
return getTriangleSize();
1275 OP_Utils::evalOpParm(result, thissop,
"trianglesize", cookparms.
getCookTime(), 0);
1283 if (!thissop)
return getMaxArea();
1285 OP_Utils::evalOpParm(result, thissop,
"maxarea", cookparms.
getCookTime(), 0);
1293 if (!thissop)
return getTargetEdgeLength();
1295 OP_Utils::evalOpParm(result, thissop,
"targetedgelength", cookparms.
getCookTime(), 0);
1303 if (!thissop)
return getMinEdgeLength();
1305 OP_Utils::evalOpParm(result, thissop,
"minedgelength", cookparms.
getCookTime(), 0);
1313 if (!thissop)
return getMaxNewPts();
1315 OP_Utils::evalOpParm(result, thissop,
"maxnewpts", cookparms.
getCookTime(), 0);
1323 if (!thissop)
return getNumLloydSteps();
1325 OP_Utils::evalOpParm(result, thissop,
"lloydsteps", cookparms.
getCookTime(), 0);
1333 if (!thissop)
return getAllowMovingInteriorInputPts();
1335 OP_Utils::evalOpParm(result, thissop,
"allowmovinginteriorpts", cookparms.
getCookTime(), 0);
1343 if (!thissop)
return getRestorePos();
1345 OP_Utils::evalOpParm(result, thissop,
"restorepos", cookparms.
getCookTime(), 0);
1353 if (!thissop)
return getKeepPrims();
1355 OP_Utils::evalOpParm(result, thissop,
"keepprims", cookparms.
getCookTime(), 0);
1363 if (!thissop)
return getUpdateNormals();
1365 OP_Utils::evalOpParm(result, thissop,
"updatenmls", cookparms.
getCookTime(), 0);
1373 if (!thissop)
return getRemoveUnusedPts();
1375 OP_Utils::evalOpParm(result, thissop,
"removeunusedpoints", cookparms.
getCookTime(), 0);
1383 if (!thissop)
return getRemoveDuplicatePts();
1385 OP_Utils::evalOpParm(result, thissop,
"removeduplicatepoints", cookparms.
getCookTime(), 0);
1393 if (!thissop)
return getUseConstrSplitPtsGrp();
1395 OP_Utils::evalOpParm(result, thissop,
"usecontrsplitptgrp", cookparms.
getCookTime(), 0);
1403 if (!thissop)
return getConstrSplitPtsGrp();
1405 OP_Utils::evalOpParm(result, thissop,
"constrsplitptgrp", cookparms.
getCookTime(), 0);
1413 if (!thissop)
return getUseConstrdEdges();
1415 OP_Utils::evalOpParm(result, thissop,
"useconstrdedges", cookparms.
getCookTime(), 0);
1423 if (!thissop)
return getConstrdEdges();
1425 OP_Utils::evalOpParm(result, thissop,
"constrdedges", cookparms.
getCookTime(), 0);
1433 if (!thissop)
return getRandomSeed();
1435 OP_Utils::evalOpParm(result, thissop,
"randseed", cookparms.
getCookTime(), 0);
1441 int64 myPlanePosSrc;
1446 bool myUseConstrEdges;
1448 bool myUseConstrPolys;
1450 bool myIgnorePolyBridges;
1451 bool myUseSilhouettePolys;
1453 bool myAllowConstrSplit;
1454 bool myUseExactConstruction;
1455 bool myIgnoreNonConstrPts;
1456 bool myRemoveFromConvexHull;
1457 bool myRemoveFromConstrPolys;
1458 bool myRemoveOutsideSilhouette;
1460 bool myAllowRefineConstrSplits;
1463 int64 myTriangleSize;
1468 int64 myNumLloydSteps;
1469 bool myAllowMovingInteriorInputPts;
1472 bool myUpdateNormals;
1473 bool myRemoveUnusedPts;
1474 bool myRemoveDuplicatePts;
1475 bool myUseConstrSplitPtsGrp;
1477 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
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
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
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)
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)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
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