You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Contain a className which will be mapped to a constructor, and parameters related to that polygonizer
7
16
*/
17
+
declaretypeSubPolygonizerParams={
18
+
className: "SlidingMarchingCubes";
19
+
smcParams?: SMCParams;
20
+
};
8
21
/**
9
22
* @typedef {Object} SplitMaxPolygonizerParams
10
-
* @property {SubPolygonizerParams=} subPolygonizer Parameters for the subpolygonizer to use.
11
-
* Must contain all parameters for the given subPolygonizer (like detailRatio, etc...)
12
-
* The class of the subpolygonizer (default to SlidingMarchingCubes) is in additional parameter class
13
-
* @property {Boolean=} smpParams.uniformRes If true, uniform resolution will be used on all primitives, according to the minimum accuracy in the blobtree.
14
-
* @property {Function=} smpParams.progress Progress callback, taking a percentage as parameter.
15
-
* @property {Number=} smpParams.ricciThreshold The RicciNode coefficient above which it will be considered like a MaxNode.
23
+
* @property {SubPolygonizerParams=} subPolygonizer P
24
+
* @property {Boolean=} smpParams.uniformRes
25
+
* @property {Function=} smpParams.progress
26
+
* @property {Number=} smpParams.ricciThreshold
16
27
*/
28
+
exportdeclaretypeSplitMaxPolygonizerParams={
29
+
subPolygonizer?: SubPolygonizerParams;
30
+
uniformRes?: boolean;
31
+
progress?: (percent: number)=>void;
32
+
ricciThreshold?: number;
33
+
};
17
34
/**
18
35
* This class will polygonize nodes independantly when they blend with a MaxNode or a RicciNode
19
36
* (for RicciNode, only if the coefficient of at least "ricciThreshold", threshold being a parameter).
20
37
* It will create a mesh made of several shells but intersections will be better looking than with some
21
38
* global polygonizers like MarchingCubes.
22
39
*/
23
-
declareclassSplitMaxPolygonizer{
24
-
/**
25
-
* @param {SplitMaxPolygonizerParams=} smpParams Parameters and option for this polygonizer.
0 commit comments