<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div style="word-wrap:break-word">Hi Arthur, finally had a little
time to work further on this polygon-<br>
labeling problem. Since you agreed it is OK, I've copied relevant<br>
mailing lists for X3D. I did not receive a copy of the screenshot<br>
images you sent to Chad but have seen them, if you wish please
resend.<br>
<br>
I do not know of an X3D tool that can display coordinate indices<br>
"on location" at each vertex, but someone else on the mailing
lists might.<br>
<br>
Meanwhile, please see our simple updated exemplar at<br>
<a class="moz-txt-link-freetext" href="http://x3dgraphics.com/examples/X3dForAdvancedModeling/GeometricShapes/">http://x3dgraphics.com/examples/X3dForAdvancedModeling/GeometricShapes/</a><br>
<a class="moz-txt-link-freetext" href="http://x3dgraphics.com/examples/X3dForAdvancedModeling/GeometricShapes/TriangleWithNumbers.x3d">http://x3dgraphics.com/examples/X3dForAdvancedModeling/GeometricShapes/TriangleWithNumbers.x3d</a><br>
<br>
There is also a transparent polygon in the center. TouchSensor is
used to<br>
put a description label there for user to see when mouse isOver
the geometry.<br>
<br>
I've written this scene to make the pattern as repeatable as
possible.<br>
Am thinking that a Prototype might be able to capture and repeat<br>
the display pattern for larger polygon sets. Algorithm outline:<br>
- take IndexedFaceSet coordIndex array and Coordinate points as
input<br>
- create corresponding IndexedLineSet, ensuring per-polygon index
lists are closed loops<br>
- place Billboarded text label at each point's location<br>
- need to figure out offset of label from each point, perhaps just
putting<br>
bottom of each displayed number at the vertex itself<br>
- use embedded Script node to loop through vertices and lines<br>
<br>
This would be a handy authoring prototype that didn't need a tool
to run,<br>
just a browser. I have a few like that embedded in X3D-Edit
already.<br>
<br>
Another feature of TouchSensor that might be used is to pick the<br>
intersection point when the user selects the geometry with the<br>
pointing device (e.g. mouse). Figuring out precisely which
polygon<br>
is selected would probably not be a good idea for large meshes,
since<br>
that is a fairly specialized task. However the information might
still<br>
be useful. Conceivably it could even be sent to a server, and
certainly<br>
it could be communicated to a parent application if there one
existed.<br>
<br>
Your company's work at <a class="moz-txt-link-freetext" href="http://www.vki.com">http://www.vki.com</a> looks very interesting.<br>
You might want to check out the efforts of our CAD working group:<br>
<a class="moz-txt-link-freetext" href="http://www.web3d.org/realtime-3d/working-groups/computer-aided-design-cad">http://www.web3d.org/realtime-3d/working-groups/computer-aided-design-cad</a><br>
</div>
<div style="word-wrap:break-word">
<a class="moz-txt-link-freetext" href="http://www.web3d.org/x3d/wiki/index.php/X3D_CAD">http://www.web3d.org/x3d/wiki/index.php/X3D_CAD</a><br>
<br>
If you want to pursue the design of the X3D prototype to continue
this<br>
design pattern then please let Chad, Michele and I know. Further
discussion<br>
is welcome, thanks again for poising this problem, good luck with
your work.<br>
<br>
all the best, Don<br>
-- <br>
Don Brutzman Naval Postgraduate School, Code USW/Br
<a class="moz-txt-link-abbreviated" href="mailto:brutzman@nps.edu">brutzman@nps.edu</a><br>
Watkins 270, MOVES Institute, Monterey CA 93943-5000 USA
+1.831.656.2149<br>
X3D graphics, virtual worlds, navy robotics
<a class="moz-txt-link-freetext" href="http://faculty.nps.edu/brutzman">http://faculty.nps.edu/brutzman</a><br>
<br>
<br>
<div>
<div>On Jan 26, 2012, at 8:23 AM, Don Brutzman wrote:</div>
<blockquote type="cite">
<div>thanks Arthur. hey Chad, when possible please scan the
notes from yesterday.<br>
<br>
On 1/26/2012 8:08 AM, Arthur Muller wrote:<br>
<blockquote type="cite">Don,</blockquote>
<blockquote type="cite">By all means! Please share the
information with the students and let me know where I can
find the answer.<br>
</blockquote>
<blockquote type="cite">My best,</blockquote>
<blockquote type="cite">-Arthur<br>
</blockquote>
<blockquote type="cite">At 04:59 PM 1/25/2012, Don Brutzman
wrote:<br>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">Hi Arthur. We've worked up a nice
response, is it OK to share all this with the students
assisting and the public x3d mailing list?<br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">On 1/17/2012 1:30 PM, <a
href="mailto:website@X3dBook.com">
website@X3dBook.com</a> wrote:<br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">From: Arthur Muller<<a
href="mailto:muller@vki.com">muller@vki.com</a>><br>
</blockquote>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">Topic: Billboard<br>
</blockquote>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">Hello Don and Leonard,<br>
</blockquote>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">I have your book in my hands but
I\'m at a loss to achieve what I\'m looking for. I\'m
hoping you can point me in the right direction.<br>
</blockquote>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">Suppose I have a triangle in
space and I only display its 3 edges (say, with
IndexedLineSet). I would like to add corner numbers -
1, 2, and 3 - to each of the corners.<br>
</blockquote>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">I understand I need to use
the<Text> tag for this, and I assume I need to
include a<Transform> with \"translation\" given
by the 3D position of each node.<br>
</blockquote>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">But here\'s the catch: as I use
FreeWrl to rotate/scale the triangle, I would like the
labels to NOT scale, to keep facing the user, BUT to
move along with the corners so I can continue to
identify the corners as they move around.<br>
</blockquote>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">Is there a way to do this in
X3D? Thanks.</blockquote>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">-Arthur</blockquote>
</blockquote>
</blockquote>
</div>
</blockquote>
</div>
<br>
</div>
</body>
</html>