Is there a way to create extruded 3d solid from planar figure?

Anonymous 9 years ago 0
This discussion was imported from CodePlex

alessio83 wrote at 2013-09-12 11:10:

I need to create a solid 3d figure starting from a planar path (that represent the section on 3d figure)

How can i do? I'm trying to use meshBuilder.AddExtrudedGeometry but i don't understand how it works and if this is the right way.

See this image for understand what i need... I have the geometry of the 2D figure (A) and i want to obtain the 3D figure B...



a5r wrote at 2013-09-16 11:31:

There's an example "Mesh Visuals Demo" in the example browser. In that example there's a tab "Extruded". The example shows a triangular section extruded over some path.

alessio83 wrote at 2013-09-16 16:07:

I see such example, but there is no example for "generic geomerty", there only pre-programmed type, i.e RectangleVisual3D, or PieSliceVisual3D ecc, no generic 2D geometry, extrudede in 3D.

a5r wrote at 2013-09-16 16:41:

Locate in the xaml file the helix:ExtrudedVisual3D and see that Section is set to "0 0 0.45 0 0.45 0.45 0 0.45". Now change it to whatever you like.

alessio83 wrote at 2013-09-16 17:05:

But in such sample, the path is composed by 3d point, and in my case the "known path" is a 2d path... may be i don't understand something...!?

objo wrote at 2013-09-17 00:17:

Yes, the Path is a Point3DCollection and the Section is a PointCollection. The 2D section is extruded along the 3D path. Use the SectionXAxis property to define the initial orientation of the section.