I can’t load this into Sketchup to check my logic or even the syntax, so keep us updated. Instance = Sketchup.active_model.active_entities.add_instance(comp, trans) Trans = Geom::Transformation.new( face_normal )Ĭ_entities( trans.inverse, _a ) # Put into local coords # The face is now defined, but not assigned to a component instance, Since I don’t understand the entire process, I will attempt to create the face first, and then convert the component’s entities to local coordinates: comp = Sketchup.active_("TEST") We would like to figure out if the face’s normal is being reversed before the face is created. You said you want the local Z axis in the same direction as the push pull, but you are sometimes reversing the face normal, which will affect the transformation. I guess in theory I could also do my pushpull after I get the first 4 offset points.
0 Comments
Leave a Reply. |