[x3d-public] Extrusions, take 3, Replacement with Cylinders, Cobweb needs to be updated in X3D Edit.

John Carlson yottzumm at gmail.com
Fri Feb 19 07:27:52 PST 2016


> On Feb 18, 2016, at 10:58 PM, Leonard Daly <Leonard.Daly at realism.com> wrote:
> 
> On 2/14/2016 9:03 PM, John Carlson wrote:
>> 
>> 3.  Leonard, can you render this in X3DOM?  I’m curious to know how to do this with Inline’s and not Proto’s.
> 
> Simple answer is No. The PROTOs use Scripts. There are no scripts in X3DOM.
> 
> That does not mean it cannot be done. You have 4 sphere's randomly moving in a region. You have connected three of them to a "central" hub. The most difficult part is maintaining the connection between the spheres. Using a transform on a cylinder is really messy because you need to scale, rotate, and translation the center of each cylinder for each animation frame.
> 
> A better way to go might be to modify the existing IndexedLineSet node to produce a line with a width. Then you are just transforming the end points of a 2-point line. Note that if you arrange the Transforms properly the "hub" sphere is always at the origin of the hierarchy that contains the 4 spheres and cylinders.

I do not want a line, I want a cylinder or extrusion—think Tinker Toys.  I think what you are saying is there’s a good use case for Extrusion, or a different definition of Cylinder?  That is all I’ve been asking for all along...

There may not be a ‘hub’ in the final product.

Thanks,

John




More information about the x3d-public mailing list