Chi-Tech
chi_mesh__SnapToPlaneMeshModifier.h
Go to the documentation of this file.
1/** \defgroup chi_mesh__SnapToPlaneMeshModifier chi_mesh.SnapToPlaneMeshModifier
2
3
4\ingroup DocMeshModifiers
5Modifier that will snap nodes, that are within a tolerated distance of a plane, to the plane. This modifier is useful for straitening a boundary edge or aligning vertices that misaligned during meshing.
6
7
8## Example usage:
9Create this object:
10\code
11params =
12{
13 param_name1 = value1,
14 param_name2 = value2,
15 --etc.
16}
17chi_mesh.SnapToPlaneMeshModifier.Create(params)
18\endcode
19## Required Input parameters
20\htmlonly
21
22<div style="display: block;">
23<button type="button" class="droppy2" style=
24"
25background-color: #edf0f5;
26color: #9373A5;
27cursor: pointer;
28border: none;
29text-align: left;
30outline: none;
31font-size: 15px;
32margin: 2px 2px;
33border: 2px solid #687372;
34display: block;
35width: 100%;
36vertical-align: middle;
37padding-top: 4px;
38padding-bottom: 0px;
39"
40><span class="arrow" style="padding-left: 0px;">►</span><TT><B>normal</B></TT><span style="color: #c4c1c0;">&nbsp &nbsp &nbsp &nbspThe normal of the plane to which the nodes are to be snapped</span></button>
41<div class="content" style="display: none;">
42 <p><I>type=</I><span style="color: blue;"><TT>ARRAY</TT></span>. The normal of the plane to which the nodes are to be snapped.
43</p>
44</div>
45
46<button type="button" class="droppy2" style=
47"
48background-color: #edf0f5;
49color: #9373A5;
50cursor: pointer;
51border: none;
52text-align: left;
53outline: none;
54font-size: 15px;
55margin: 2px 2px;
56border: 2px solid #687372;
57display: block;
58width: 100%;
59vertical-align: middle;
60padding-top: 4px;
61padding-bottom: 0px;
62"
63><span class="arrow" style="padding-left: 0px;">►</span><TT><B>point</B></TT><span style="color: #c4c1c0;">&nbsp &nbsp &nbsp &nbspThe anchor point of the plane</span></button>
64<div class="content" style="display: none;">
65 <p><I>type=</I><span style="color: blue;"><TT>ARRAY</TT></span>. The anchor point of the plane.
66</p>
67</div>
68
69</div>
70\endhtmlonly
71
72## Optional Input parameters
73\htmlonly
74
75<div style="display: block;">
76<button type="button" class="droppy2" style=
77"
78background-color: #edf0f5;
79color: #9373A5;
80cursor: pointer;
81border: none;
82text-align: left;
83outline: none;
84font-size: 15px;
85margin: 2px 2px;
86border: 2px solid #687372;
87display: block;
88width: 100%;
89vertical-align: middle;
90padding-top: 4px;
91padding-bottom: 0px;
92"
93><span class="arrow" style="padding-left: 0px;">►</span><TT><B>boundaries_only</B></TT><span style="color: #c4c1c0;">&nbsp &nbsp &nbsp &nbspIf set to true, only boundary nodes will be snapped</span></button>
94<div class="content" style="display: none;">
95 <p><I>type=</I><span style="color: blue;"><TT>BOOLEAN</TT></span>. If set to true, only boundary nodes will be snapped.
96</p>
97 <p>Default value: <TT style="color:grey">true</TT></p>
98</div>
99
100<button type="button" class="droppy2" style=
101"
102background-color: #edf0f5;
103color: #9373A5;
104cursor: pointer;
105border: none;
106text-align: left;
107outline: none;
108font-size: 15px;
109margin: 2px 2px;
110border: 2px solid #687372;
111display: block;
112width: 100%;
113vertical-align: middle;
114padding-top: 4px;
115padding-bottom: 0px;
116"
117><span class="arrow" style="padding-left: 0px;">►</span><TT><B>check_face_alignment</B></TT><span style="color: #c4c1c0;">&nbsp &nbsp &nbsp &nbspIf set, only faces that match the plane normal (within tolerance) will have their nodes snapped</span></button>
118<div class="content" style="display: none;">
119 <p><I>type=</I><span style="color: blue;"><TT>BOOLEAN</TT></span>. If set, only faces that match the plane normal (within tolerance) will have their nodes snapped.
120</p>
121 <p>Default value: <TT style="color:grey">false</TT></p>
122</div>
123
124<button type="button" class="droppy2" style=
125"
126background-color: #edf0f5;
127color: #9373A5;
128cursor: pointer;
129border: none;
130text-align: left;
131outline: none;
132font-size: 15px;
133margin: 2px 2px;
134border: 2px solid #687372;
135display: block;
136width: 100%;
137vertical-align: middle;
138padding-top: 4px;
139padding-bottom: 0px;
140"
141><span class="arrow" style="padding-left: 0px;">►</span><TT><B>tolerance</B></TT><span style="color: #c4c1c0;">&nbsp &nbsp &nbsp &nbspTolerance per dimension within which a face/edge will be aligned</span></button>
142<div class="content" style="display: none;">
143 <p><I>type=</I><span style="color: blue;"><TT>FLOAT</TT></span>. Tolerance per dimension within which a face/edge will be aligned
144</p>
145 <p>Default value: <TT style="color:grey">1e-05(double)</TT></p>
146</div>
147
148</div>
149\endhtmlonly
150
151\htmlonly
152
153<script>
154
155{
156 var coll = document.getElementsByClassName("droppy2");
157 var i;
158
159 for (i = 0; i < coll.length; i++) {
160 coll[i].addEventListener("click", function() {
161 this.classList.toggle("active");
162 var content = this.nextElementSibling;
163 if (content.style.display === "block") {
164 content.style.display = "none";
165 this.childNodes[0].innerText = "►"
166 } else {
167 content.style.display = "block";
168 this.children[0].innerText = "▼"
169 }
170 });
171 }
172}</script>
173
174\endhtmlonly
175
176*/