I represent sub assemblies with modules that draw a bunch of objects by calling other modules that may be smaller sub assemblies, printed parts or vitamins like screws. Openscad assembly how to#I do not know how to tell a function how to enter another module……įrom: nophead ] If I understood you, then somehow I can tell a function which module to enter to get the data a module needs to attach another module to it. It will not have orientation information, however, as the module being attached has no clue about any other module and hence desired orientation is unknown. Thus the module that assembles all the other modules knows that when each is called it at least knows the attachment point will always be at the current origin. If I could move the origin within each module, then I could move it to the effective center of the attachment point. I can’t figure out how to move the origin where I want it to be. Regarding your comment: “I give each object a sensible origin and orientation”.If my understanding is correct, then I have the following two questions: If I misunderstood you, then please correct me. If you need more information, you move it out of a module via a function (which can return data).You give each part a sensible origin and orientation to make it easy to place.I don’t have a concept of connection points.A top level module draws the complete assy.Here are bits that I pulled from your response: Thank you for replying….much appreciated. So….I am guessing that the attachment data within each included file is defined as a special variable so that it can always be seen (though never changed…which is perfectly acceptable for my specific situation) by the assembly file.įrom: ctchin ] Openscad assembly code#
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |