-
Notifications
You must be signed in to change notification settings - Fork 2
/
mesher_template.mlx
68 lines (68 loc) · 8.65 KB
/
mesher_template.mlx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE FilterScript>
<FilterScript>
<filter name="Change the current layer">
<Param name="mesh" tooltip="The name of the current mesh" description="Mesh" value="0" type="RichMesh"/>
</filter>
<filter name="Compute normals for point sets">
<Param name="K" tooltip="The number of neighbors used to estimate normals." description="Neighbour num" value="10" type="RichInt"/>
<Param name="smoothIter" tooltip="The number of smoothing iteration done on the p used to estimate and propagate normals." description="Smooth Iteration" value="8" type="RichInt"/>
<Param name="flipFlag" tooltip="If the 'viewpoint' (i.e. scanner position) is known, it can be used to disambiguate normals orientation, so that all the normals will be oriented in the same direction." description="Flip normals w.r.t. viewpoint" value="true" type="RichBool"/>
<Param z="1.007949" name="viewPos" tooltip="The viewpoint position can be set by hand (i.e. getting the current viewpoint) or it can be retrieved from mesh camera, if the viewpoint position is stored there." y="-0.4432943" description="Viewpoint Pos." x="-1.726637" type="RichPoint3f"/>
</filter>
<filter name="Flatten Visible Layers">
<Param name="MergeVisible" tooltip="Merge the vertices that are duplicated among different layers. <br>Very useful when the layers are spliced portions of a single big mesh." description="Merge Only Visible Layers" value="true" type="RichBool"/>
<Param name="DeleteLayer" tooltip="Delete all the merged layers. <br>If all layers are visible only a single layer will remain after the invocation of this filter" description="Delete Layers " value="true" type="RichBool"/>
<Param name="MergeVertices" tooltip="Merge the vertices that are duplicated among different layers. 

Very useful when the layers are spliced portions of a single big mesh." description="Merge duplicate vertices" value="false" type="RichBool"/>
<Param name="AlsoUnreferenced" tooltip="Do not discard unreferenced vertices from source layers

Necessary for point-only layers" description="Keep unreferenced vertices" value="true" type="RichBool"/>
</filter>
<filter name="Poisson-disk Sampling">
<Param name="SampleNum" tooltip="The desired number of samples. The ray of the disk is calculated according to the sampling density." description="Number of samples" value="50000" type="RichInt"/>
<Param name="Radius" tooltip="If not zero this parameter override the previous parameter to allow exact radius specification" description="Explicit Radius" value="0" type="RichAbsPerc" min="0" max="3.40332"/>
<Param name="MontecarloRate" tooltip="The over-sampling rate that is used to generate the intial Montecarlo samples (e.g. if this parameter is <i>K</i> means that<i>K</i> x <i>poisson sample</i> points will be used). The generated Poisson-disk samples are a subset of these initial Montecarlo samples. Larger this number slows the process but make it a bit more accurate." description="MonterCarlo OverSampling" value="20" type="RichInt"/>
<Param name="SaveMontecarlo" tooltip="If true, it will generate an additional Layer with the montecarlo sampling that was pruned to build the poisson distribution." description="Save Montecarlo" value="false" type="RichBool"/>
<Param name="ApproximateGeodesicDistance" tooltip="If true Poisson Disc distances are computed using an approximate geodesic distance, e.g. an euclidean distance weighted by a function of the difference between the normals of the two points." description="Approximate Geodesic Distance" value="false" type="RichBool"/>
<Param name="Subsample" tooltip="If true the original vertices of the base mesh are used as base set of points. In this case the SampleNum should be obviously much smaller than the original vertex number.<br>Note that this option is very useful in the case you want to subsample a dense point cloud." description="Base Mesh Subsampling" value="true" type="RichBool"/>
<Param name="RefineFlag" tooltip="If true the vertices of the below mesh are used as starting vertices, and they will utterly refined by adding more and more points until possible. " description="Refine Existing Samples" value="false" type="RichBool"/>
<Param name="RefineMesh" tooltip="Used only if the above option is checked. " description="Samples to be refined" value="0" type="RichMesh"/>
<Param name="BestSampleFlag" tooltip="If true it will use a simple heuristic for choosing the samples. At a small cost (it can slow a bit the process) it usually improve the maximality of the generated sampling. " description="Best Sample Heuristic" value="true" type="RichBool"/>
<Param name="BestSamplePool" tooltip="Used only if the Best Sample Flag is true. It control the number of attempt that it makes to get the best sample. It is reasonable that it is smaller than the Montecarlo oversampling factor." description="Best Sample Pool Size" value="10" type="RichInt"/>
<Param name="ExactNumFlag" tooltip="If requested it will try to do a dicotomic search for the best poisson disk radius that will generate the requested number of samples with a tolerance of the 0.5%. Obviously it takes much longer." description="Exact number of samples" value="true" type="RichBool"/>
<Param name="RadiusVariance" tooltip="The radius of the disk is allowed to vary between r and r*var. If this parameter is 1 the sampling is the same of the Poisson Disk Sampling" description="Radius Variance" value="1" type="RichFloat"/>
</filter>
<filter name="Delete Current Mesh">
</filter>
<filter name="Surface Reconstruction: Ball Pivoting">
<Param name="BallRadius" tooltip="The radius of the ball pivoting (rolling) over the set of points. Gaps that are larger than the ball radius will not be filled; similarly the small pits that are smaller than the ball radius will be filled." description="Pivoting Ball radius (0 autoguess)" value="0.016" type="RichAbsPerc" min="0" max="3.40332"/>
<Param name="Clustering" tooltip="To avoid the creation of too small triangles, if a vertex is found too close to a previous one, it is clustered/merged with it." description="Clustering radius (% of ball radius)" value="20" type="RichFloat"/>
<Param name="CreaseThr" tooltip="If we encounter a crease angle that is too large we should stop the ball rolling" description="Angle Threshold (degrees)" value="90" type="RichFloat"/>
<Param name="DeleteFaces" tooltip="if true all the initial faces of the mesh are deleted and the whole surface is rebuilt from scratch, other wise the current faces are used as a starting point. Useful if you run multiple times the algorithm with an incrasing ball radius." description="Delete intial set of faces" value="false" type="RichBool"/>
</filter>
<xmlfilter name="Screened Poisson Surface Reconstruction">
<xmlparam name="cgDepth" value="0"/>
<xmlparam name="confidence" value="false"/>
<xmlparam name="depth" value="8"/>
<xmlparam name="fullDepth" value="5"/>
<xmlparam name="iters" value="8"/>
<xmlparam name="pointWeight" value="4"/>
<xmlparam name="preClean" value="true"/>
<xmlparam name="samplesPerNode" value="5"/>
<xmlparam name="scale" value="1.1"/>
<xmlparam name="visibleLayer" value="false"/>
</xmlfilter>
<filter name="Estimate radius from density">
<Param name="NbNeighbors" description="Number of neighbors" value="16" type="RichInt" tooltip="Number of neighbors used to estimate the local density. Larger values lead to smoother variations."/>
</filter>
<filter name="Per Vertex Quality Function">
<Param name="q" description="func q = " value="rad" type="RichString" tooltip="function to generate new Quality for every vertex"/>
<Param name="normalize" description="normalize" value="false" type="RichBool" tooltip="if checked normalize all quality values in range [0..1]"/>
<Param name="map" description="map into color" value="true" type="RichBool" tooltip="if checked map quality generated values into per-vertex color"/>
<Param name="onselected" description="only on selection" value="false" type="RichBool" tooltip="if checked, only affects selected vertices"/>
</filter>
<filter name="Select by Vertex Quality">
<Param name="minQ" max="0.124661" description="Min Quality" value="0.021199" type="RichDynamicFloat" min="0.00435702" tooltip="Minimum acceptable quality value"/>
<Param name="maxQ" max="0.124661" description="Max Quality" value="0.124661" type="RichDynamicFloat" min="0.00435702" tooltip="Maximum acceptable quality value"/>
<Param name="Inclusive" description="Inclusive Sel." value="true" type="RichBool" tooltip="If true only the faces with <b>all</b> the vertices within the specified range are selected. Otherwise any face with at least one vertex within the range is selected."/>
</filter>
<filter name="Delete Selected Vertices">
</filter>
</FilterScript>