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
<p>As of SketchUp 2022.0 the new <spanclass='object_link'><ahref="../Sketchup/EntitiesBuilder.html" title="Sketchup::EntitiesBuilder (class)">Sketchup::EntitiesBuilder</a></span> interface can be used to generate bulk geometry. It has similar performance as <spanclass='object_link'><ahref="" title="Geom::PolygonMesh (class)">PolygonMesh</a></span>, but with similar degree of per-entity control as <spanclass='object_link'><ahref="../Sketchup/Entities.html" title="Sketchup::Entities (class)">Sketchup::Entities</a></span>.</p>
194
+
</div>
195
+
</div>
196
+
197
+
189
198
<p>The <spanclass='object_link'><ahref="" title="Geom::PolygonMesh (class)">PolygonMesh</a></span> class contains methods to create polygon mesh structures. This is useful if you need to write a custom importer/exporter in Ruby that works at the level of triangulated polygons. For example, you can determine the triangles that make up a 15-sided <spanclass='object_link'><ahref="../Sketchup/Face.html" title="Sketchup::Face (class)">Sketchup::Face</a></span> by using this class, or write a <spanclass='object_link'><ahref="../Sketchup/Importer.html" title="Sketchup::Importer (class)">Sketchup::Importer</a></span> that reads a data file, creates a mesh from it, and draws faces based on the mesh.</p>
190
199
191
200
<p>You can construct a mesh manually using the methods of this class, or you can get a mesh from a face by calling the <spanclass='object_link'><ahref="../Sketchup/Face.html#mesh-instance_method" title="Sketchup::Face#mesh (method)">Sketchup::Face#mesh</a></span> method. See <spanclass='object_link'><ahref="../Sketchup/Entities.html#add_faces_from_mesh-instance_method" title="Sketchup::Entities#add_faces_from_mesh (method)">Sketchup::Entities#add_faces_from_mesh</a></span> for an easy way to convert a mesh back into faces.</p>
<li><ahref="../file.generating_geometry.html" title="Guide on Generating Geometry">Guide on Generating Geometry</a></li>
226
+
227
+
</ul>
212
228
<pclass="tag_title">Version:</p>
213
229
<ulclass="version">
214
230
@@ -327,7 +343,7 @@ <h2>
327
343
328
344
329
345
<spanclass="summary_desc"><divclass='inline'>
330
-
<p>The <code>add_polygon</code> method is used for adding a polygon to a PolygonMesh.</p>
346
+
<p>The <spanclass='object_link'><ahref="#add_polygon-instance_method" title="Geom::PolygonMesh#add_polygon (method)">#add_polygon</a></span> method is used for adding a polygon to a <spanclass='object_link'><ahref="" title="Geom::PolygonMesh (class)">PolygonMesh</a></span>.</p>
<p>In SketchUp 2021.1 this method was improved to be faster. See <spanclass='object_link'><ahref="#initialize-instance_method" title="Geom::PolygonMesh#initialize (method)">#initialize</a></span> for details.</p>
935
+
</div>
936
+
</div>
937
+
938
+
915
939
<p>The <spanclass='object_link'><ahref="#add_point-instance_method" title="Geom::PolygonMesh#add_point (method)">#add_point</a></span> method is used to add a point to the mesh.</p>
916
940
917
-
<p>The index can be used for creating polygons.</p>
941
+
<p>The returned index can be used for creating polygons.</p>
<p>The <code>add_polygon</code> method is used for adding a polygon to a PolygonMesh. All variations of this method require at least 3 elements to define a polygon, although more may be given.</p>
1047
+
<divclass="note notetag">
1048
+
<strong>Note:</strong>
1049
+
<divclass='inline'>
1050
+
<p>In SketchUp 2021.1 this method was improved to be faster. See <spanclass='object_link'><ahref="#initialize-instance_method" title="Geom::PolygonMesh#initialize (method)">#initialize</a></span> for details.</p>
1051
+
</div>
1052
+
</div>
1053
+
1054
+
1055
+
<p>The <spanclass='object_link'><ahref="#add_polygon-instance_method" title="Geom::PolygonMesh#add_polygon (method)">#add_polygon</a></span> method is used for adding a polygon to a <spanclass='object_link'><ahref="" title="Geom::PolygonMesh (class)">Geom::PolygonMesh</a></span>. All variations of this method require at least 3 elements to define a polygon, although more may be given.</p>
0 commit comments