Hey there.
I’m making an attempt to attract a 3D helix. Particularly, the helix is a staircase stringer. So it has width. A part of the script that attracts that is connected beneath:
step = step-(1.0/@element)
entities.add_line(Geom::Point3d.new(-p3, p4, rise1-stringerz+(@rise/@element)),Geom::Point3d.new(-p1, p2, rise1-stringerz+(@rise/@element)))
rise1 = rise1-(@rise/@element)
rise2 = rise2-(@rise/@element)
p1 = stringe1
p2 = stringe2
p3 = stringe3
p4 = stringe4
finish
entities.add_line(Geom::Point3d.new(-irad+@stringt, 0, rise1),Geom::Point3d.new(-irad+@stringt, 0, rise2-stringerz))
entities.add_line(Geom::Point3d.new(-lp3, lp4, rise2-stringerz+(@rise/@element)), Geom::Point3d.new(-irad, 0, rise1-stringerz+(@rise/@element)))
entities.add_line(Geom::Point3d.new(-irad, 0, rise1-stringerz+(@rise/@element)), Geom::Point3d.new(-lp1, lp2, rise2-stringerz+(@rise/@element)))
entities.add_line(Geom::Point3d.new(-irad+@stringt, 0, rise1-stringerz+(@rise/@element)), Geom::Point3d.new(-lp3, lp4, rise2-stringerz+(@rise/@element)))
mannequin.active_layer = threed
add = group.entities.add_instance(new_comp_def, IDENTITY)
Please observe, I’ve referred to this as a ‘script’. I take advantage of the Ruby Code Editor to automate my drawings, and this isn’t an extension.
In any case, on the finish of the code, I’ve a wireframe stringer. I’m having problem with discover the precise code I have to create the faces on this. I’ve tried a wide range of various things already, together with progressively drawing the faces because the traces are drawn, however there’s points with every part I’ve tried to this point. I do know the reply lies in grepping the traces and the choice instruments, however the precise reply escapes me.
Utilizing Eneroth’s Face Creator looks as if a easy resolution, however it’s not splendid because it creates too many faces (discovering all the inner ones as nicely), which slows issues down and you may’t soften the traces.
Thanks.