Extrude Polyline

Oct 8, 2013 at 9:34 AM
how I can extrude a polyline?
Anyone have an example?
Oct 17, 2013 at 11:55 AM
Please, i need the same help. I tried AddExtrudedGeometry but didnt understand well the use of it. A simple sample of extruded polygon geometry could be very helpful. Thanks!!
Oct 25, 2013 at 2:48 PM
See here I hope it helps.
Oct 25, 2013 at 9:21 PM
thank you rinaldin, exactly what I need.
Please i need an example in C # or VB, with a curve would be great
Oct 28, 2013 at 6:19 PM
        ' the Path is a Point3DCollection and the Section is a PointCollection
        Dim sect As New PointCollection
        ' rettangolare
        sect.Add(New Point(-1, -1))
        sect.Add(New Point(0, -1))
        sect.Add(New Point(1, 1))
        sect.Add(New Point(-1, 1))
        Dim asse As New Vector3D(1, 0, 0)

        Dim rend As New ExtrudedVisual3D
        rend.Section = sect
        rend.Path.Add(pt)
        rend.Path.Add(pt1)
        rend.SectionXAxis = asse
        rend.Fill = Brushes.Green
        rend.IsPathClosed = True
        rend.IsSectionClosed = True
        HelixViewport3D1.Children.Add(rend)

        container.Children.Add(rend)
Oct 30, 2013 at 8:51 AM
Thanks you,
is great, I have a problem with rend.SectionXAxis = asse, you can help me?.
Oct 30, 2013 at 2:22 PM
"asse" is a vector orthogonal to the extrusion axis. You have to orient it to the desired direction , but always othogonal to the vector connecting pt and pt1 (starting and ending points of the extrusion).
Oct 30, 2013 at 4:51 PM
Is posibel added caps to the extrusion?
Oct 30, 2013 at 7:41 PM
I didn't try yet, but I think so; add a Polygon using the sect points.