<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=EN-US link=blue vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Also note thee are several ways to represent a shape in x3d. If the name includes Indexed then the user code includes the coordinates for the points and the sets of coordindex numbers that tell the browser how to make the triangles. </p><p class=MsoNormal>Some styles of shapes do not require the user to supply coordIndex, then the points are default auto-indexed into triangles by a standardized formula depending on name and included user code for points. </p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>So, when you say shape Sphere then the browser encodes that depending on its internal spec sphere. </p><p class=MsoNormal>You can see the result in a browser that can just show the points or triangles of the shape sphere otherwise it will appear as a solid but the details of the actual coordinates of points and tessellation (indexing) of those points will not appear in the user code because what does the user care about what the browser uses to create your Sphere? . </p><p class=MsoNormal> </p><p class=MsoNormal>So, for the default shape Box, probably uses two triangles per side. </p><p class=MsoNormal>I think there is x3d Shape user code to present a box in both indexed and auto-indexed form. </p><p class=MsoNormal> </p><p class=MsoNormal>Here is classic-style user code with lots of defaults for one side of a box. </p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> DEF boxfront Shape {</p><p class=MsoNormal> appearance Appearance {</p><p class=MsoNormal> material Material { }</p><p class=MsoNormal> texture ImageTexture {</p><p class=MsoNormal> url [ "textures/boxfront.jpg" ]</p><p class=MsoNormal> }</p><p class=MsoNormal> }</p><p class=MsoNormal> geometry IndexedFaceSet {</p><p class=MsoNormal> coordIndex [ 0 1 2 3 -1 ]</p><p class=MsoNormal> coord Coordinate {</p><p class=MsoNormal> point [ -1 -1 1, 1 -1 1, 1 1 1, -1 1 1 ]</p><p class=MsoNormal> }</p><p class=MsoNormal> texCoordIndex [ 0 1 2 3 -1 ]</p><p class=MsoNormal> texCoord TextureCoordinate {</p><p class=MsoNormal> point [ 0 0 1 0 1 1 0 1 ]</p><p class=MsoNormal> }</p><p class=MsoNormal> }</p><p class=MsoNormal>}</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Joe</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='border:none;padding:0in'><b>From: </b><a href="mailto:gpugroup@gmail.com">GPU Group</a><br><b>Sent: </b>Saturday, April 22, 2023 2:33 PM<br><b>To: </b><a href="mailto:yottzumm@gmail.com">John Carlson</a><br><b>Cc: </b><a href="mailto:x3d-public@web3d.org">X3D Graphics public mailing list</a><br><b>Subject: </b>Re: [x3d-public] Tessellation…convert to IFS?</p></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Depends what you're doing. Assuming you're starting with a point cloud, if you're tessellating something almost flat, and with irregular points, then you can use something like Delaunay algorithm to optimize the edges between points to give triangles that are more equi-angular.</p><div><p class=MsoNormal>If you are on a 3D dimensional surface, but know its close to being convex -- like a sphere or cube -- then you can move the planar math around a spherical center, and crop points in the distance / on the other side of center when triangulating. </p></div><div><p class=MsoNormal>Or you can remove and add points from a pre-triangulated sphere (I just made this up). Looking orthogonally at an existing triangle on your sphere, add a point from your point cloud, to the appropriate triangle, based on its yaw and pitch, or latitude, longitude, while ignoring its radius/height. When you have all your points added, then start removing the sphere's points. After each step of adding (or removing sphere points at the end), do Delaunay recursive triangle swaps on the local plane. </p></div><div><p class=MsoNormal>Or ask ChatGPT - it might know.</p></div><div><p class=MsoNormal>-Doug</p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>On Sat, Apr 22, 2023 at 3:05 PM John Carlson <<a href="mailto:yottzumm@gmail.com">yottzumm@gmail.com</a>> wrote:</p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><p class=MsoNormal>When one is tessellating a shape, like Box, is it typical to convert to IFS?</p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Thanks!</p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>John</p></div></blockquote></div><p class=MsoNormal style='margin-left:4.8pt'>_______________________________________________<br>x3d-public mailing list<br><a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a><br><a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>