discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: [OpenSCAD] Discuss Digest, Vol 58, Issue 8

J
jim.klessig
Mon, Sep 9, 2019 6:08 PM

Robin wroteI agree completely. I had just been hoping that there was a simpler Openscadsolution that I was not aware of - especially as it seems so much anintegral capability of Freecad and SolveSpace_____________From my point of view, it comes down to the fundamental difference in the conceptual way Fc and openscad work. In FC, you have an object from which you can "grab" a face, a line, or a point, and do something to it, or in a specific relationship to it.In Openscad, there really is nothing to "grab". None of the geometry exists until you "F6" it. cant speak to Solvespace.In your original case of placing a feature perpendicular to the face of an extruded polygon, one way is to work it backwards. Orient your polygon  so that it is on the xy plane, and your segment (soon to be face) is on the x axis, and then extrude in the z axis for your extrusion and then make your other object extend out in the "y" direction.  Then manipulate the new combined object as needed to get the face where you want it.I guess it would be relatively simple to make a module that took an n sided polygon and allowed you to place one of "n" objects perpendicular  to a face. you would still need to know where you want them in z and y, which could be more vector inputs to the module.just my probably clueless 2c worth.Sent from my  U.S.Cellular© Smartphone
-------- Original message --------From: discuss-request@lists.openscad.org Date: 9/9/19  9:00 AM  (GMT-08:00) To: discuss@lists.openscad.org Subject: Discuss Digest, Vol 58, Issue 8 Send Discuss mailing list submissions to discuss@lists.openscad.orgTo subscribe or unsubscribe via the World Wide Web, visit http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.orgor, via email, send a message with subject or body 'help' to discuss-request@lists.openscad.orgYou can reach the person managing the list at discuss-owner@lists.openscad.orgWhen replying, please edit your Subject line so it is more specificthan "Re: Contents of Discuss digest..."Today's Topics:   1. Re: How to make a cylinder perpendicular to a sloping face      (Jordan Brown)   2. Re: How to make a cylinder perpendicular to a sloping face      (adrianv)   3. Re: How to make a cylinder perpendicular to a sloping face      (Robin2)----------------------------------------------------------------------Message: 1Date: Sun, 8 Sep 2019 23:47:54 +0000From: Jordan Brown openscad@jordan.maileater.netTo: OpenSCAD general discussion discuss@lists.openscad.org, nop head nop.head@gmail.comSubject: Re: [OpenSCAD] How to make a cylinder perpendicular to a sloping faceMessage-ID: 0101016d1346dc30-e3a052a1-bbe1-4007-9983-b9701deeddb2-000000@us-west-2.amazonses.com Content-Type: text/plain; charset="utf-8"On 9/5/2019 3:16 PM, nop head wrote:> >I think the idea that you should use trig every time you want to> position an object is absurd.???>> Well for me trig is trivial but I have no idea what that BSOL code> does, or how it works. I would have to look it up but I know what> atan2 does.Yeah, that's pretty much my attitude too.? I know the trig, more orless; I'd have to learn the library.? It means I reinvent wheels, butsometimes reinventing a wheel is easier than trying to understand howsomebody else's wheel works.You can make it a little simpler (in some ways) by embedding therotation and translation in the "parent" object and applying them tochildren.? In a couple of cases I've had models with "faceplates" onwhich there are controls; the design I've used is to accept a child thatcontains objects that are to be placed on the faceplate.? The childobjects - knobs and whatnot - are laid out as if they were on ahorizontal surface at z=0; the parent rotates and translates them intothe right place.That's basically the "attachment" model that some libraries support, butwithout any attempt at generalizing.On these models of a washing machine and a drier, the control panel(with the buttons and knobs) and the detergent door (on top of thewasher) are done this way.? Partly it makes it easier to think about thelayout, but also the basic box for the two is the same module; it's onlythose two add-ons that are specific.I don't remember why one of the controls on the drier is white.I've used similar strategies for positioning handles on cabinets,separating the design of the handle from the positioning (andduplication!) on the cabinet.More than you wanted to know.-------------- next part --------------An HTML attachment was scrubbed...URL: http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20190908/64f60212/attachment-0001.html-------------- next part --------------A non-text attachment was scrubbed...Name: amcfpeikoiimpfla.pngType: image/pngSize: 19294 bytesDesc: not availableURL: http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20190908/64f60212/attachment-0001.png------------------------------Message: 2Date: Sun, 8 Sep 2019 19:32:15 -0700 (MST)From: adrianv avm4@cornell.eduTo: discuss@lists.openscad.orgSubject: Re: [OpenSCAD] How to make a cylinder perpendicular to a sloping faceMessage-ID: 1567996335147-0.post@n5.nabble.comContent-Type: text/plain; charset=us-asciiPersonally I find it's much easier to make a small (or large) mistake bytrying to position objects myself using translate and rotate operations anddoing trig.  And much harder to debug the mistake.  And harder generally tochange the model when I want to change it.  But it's obviously a matter ofopinion.   Yes, using a library does require the additional effort oflearning to use the library.   Many vocal people on this forum do notbelieve that this effort will be repaid.  I personally disagree.  Out of curiosity, how might your original query be answered with a methodthat does not require learning something new?  How could a mechanism allowyou to position a cylinder on the sloped side of an object withoutcomplicating OpenSCAD?  I am not able to imagine a mechanism that could dothis that wouldn't require learning a bunch of new commands for managingthat position.  Robin2 wrote> Interesting. Thank you very much.> > I can see how it works, but it also seems to me that it starts to lose the> ease-of-use advantage that Openscad has over Freecad or SolveSpace. The> library introduces a whole lot of additional stuff that must be learned> and> with which it is easy to make a small mistake.--Sent from: http://forum.openscad.org/------------------------------Message: 3Date: Mon, 9 Sep 2019 00:25:02 -0700 (MST)From: Robin2 robin@nbleopard.comTo: discuss@lists.openscad.orgSubject: Re: [OpenSCAD] How to make a cylinder perpendicular to a sloping faceMessage-ID: 1568013902108-0.post@n5.nabble.comContent-Type: text/plain; charset=us-asciiadrianv wrote> Out of curiosity, how might your original query be answered with a method> that does not require learning something new?  > > --> Sent from: http://forum.openscad.org/> > _______________________________________________> OpenSCAD mailing list> Discuss@.openscad> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.orgI agree completely. I had just been hoping that there was a simpler Openscadsolution that I was not aware of - especially as it seems so much anintegral capability of Freecad and SolveSpace...R--Sent from: http://forum.openscad.org/------------------------------Subject: Digest Footer_______________________________________________Discuss mailing listDiscuss@lists.openscad.orghttp://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org------------------------------End of Discuss Digest, Vol 58, Issue 8**************************************

Robin wroteI agree completely. I had just been hoping that there was a simpler Openscadsolution that I was not aware of - especially as it seems so much anintegral capability of Freecad and SolveSpace_____________From my point of view, it comes down to the fundamental difference in the conceptual way Fc and openscad work. In FC, you have an object from which you can "grab" a face, a line, or a point, and do something to it, or in a specific relationship to it.In Openscad, there really is nothing to "grab". None of the geometry exists until you "F6" it. cant speak to Solvespace.In your original case of placing a feature perpendicular to the face of an extruded polygon, one way is to work it backwards. Orient your polygon  so that it is on the xy plane, and your segment (soon to be face) is on the x axis, and then extrude in the z axis for your extrusion and then make your other object extend out in the "y" direction.  Then manipulate the new combined object as needed to get the face where you want it.I guess it would be relatively simple to make a module that took an n sided polygon and allowed you to place one of "n" objects perpendicular  to a face. you would still need to know where you want them in z and y, which could be more vector inputs to the module.just my probably clueless 2c worth.Sent from my U.S.Cellular© Smartphone -------- Original message --------From: discuss-request@lists.openscad.org Date: 9/9/19 9:00 AM (GMT-08:00) To: discuss@lists.openscad.org Subject: Discuss Digest, Vol 58, Issue 8 Send Discuss mailing list submissions to discuss@lists.openscad.orgTo subscribe or unsubscribe via the World Wide Web, visit http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.orgor, via email, send a message with subject or body 'help' to discuss-request@lists.openscad.orgYou can reach the person managing the list at discuss-owner@lists.openscad.orgWhen replying, please edit your Subject line so it is more specificthan "Re: Contents of Discuss digest..."Today's Topics:   1. Re: How to make a cylinder perpendicular to a sloping face      (Jordan Brown)   2. Re: How to make a cylinder perpendicular to a sloping face      (adrianv)   3. Re: How to make a cylinder perpendicular to a sloping face      (Robin2)----------------------------------------------------------------------Message: 1Date: Sun, 8 Sep 2019 23:47:54 +0000From: Jordan Brown <openscad@jordan.maileater.net>To: OpenSCAD general discussion <discuss@lists.openscad.org>, nop head <nop.head@gmail.com>Subject: Re: [OpenSCAD] How to make a cylinder perpendicular to a sloping faceMessage-ID: <0101016d1346dc30-e3a052a1-bbe1-4007-9983-b9701deeddb2-000000@us-west-2.amazonses.com> Content-Type: text/plain; charset="utf-8"On 9/5/2019 3:16 PM, nop head wrote:> >I think the idea that you should use trig every time you want to> position an object is absurd.???>> Well for me trig is trivial but I have no idea what that BSOL code> does, or how it works. I would have to look it up but I know what> atan2 does.Yeah, that's pretty much my attitude too.? I know the trig, more orless; I'd have to learn the library.? It means I reinvent wheels, butsometimes reinventing a wheel is easier than trying to understand howsomebody else's wheel works.You can make it a little simpler (in some ways) by embedding therotation and translation in the "parent" object and applying them tochildren.? In a couple of cases I've had models with "faceplates" onwhich there are controls; the design I've used is to accept a child thatcontains objects that are to be placed on the faceplate.? The childobjects - knobs and whatnot - are laid out as if they were on ahorizontal surface at z=0; the parent rotates and translates them intothe right place.That's basically the "attachment" model that some libraries support, butwithout any attempt at generalizing.On these models of a washing machine and a drier, the control panel(with the buttons and knobs) and the detergent door (on top of thewasher) are done this way.? Partly it makes it easier to think about thelayout, but also the basic box for the two is the same module; it's onlythose two add-ons that are specific.I don't remember why one of the controls on the drier is white.I've used similar strategies for positioning handles on cabinets,separating the design of the handle from the positioning (andduplication!) on the cabinet.More than you wanted to know.-------------- next part --------------An HTML attachment was scrubbed...URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20190908/64f60212/attachment-0001.html>-------------- next part --------------A non-text attachment was scrubbed...Name: amcfpeikoiimpfla.pngType: image/pngSize: 19294 bytesDesc: not availableURL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20190908/64f60212/attachment-0001.png>------------------------------Message: 2Date: Sun, 8 Sep 2019 19:32:15 -0700 (MST)From: adrianv <avm4@cornell.edu>To: discuss@lists.openscad.orgSubject: Re: [OpenSCAD] How to make a cylinder perpendicular to a sloping faceMessage-ID: <1567996335147-0.post@n5.nabble.com>Content-Type: text/plain; charset=us-asciiPersonally I find it's much easier to make a small (or large) mistake bytrying to position objects myself using translate and rotate operations anddoing trig.  And much harder to debug the mistake.  And harder generally tochange the model when I want to change it.  But it's obviously a matter ofopinion.   Yes, using a library does require the additional effort oflearning to use the library.   Many vocal people on this forum do notbelieve that this effort will be repaid.  I personally disagree.  Out of curiosity, how might your original query be answered with a methodthat does not require learning something new?  How could a mechanism allowyou to position a cylinder on the sloped side of an object withoutcomplicating OpenSCAD?  I am not able to imagine a mechanism that could dothis that wouldn't require learning a bunch of new commands for managingthat position.  Robin2 wrote> Interesting. Thank you very much.> > I can see how it works, but it also seems to me that it starts to lose the> ease-of-use advantage that Openscad has over Freecad or SolveSpace. The> library introduces a whole lot of additional stuff that must be learned> and> with which it is easy to make a small mistake.--Sent from: http://forum.openscad.org/------------------------------Message: 3Date: Mon, 9 Sep 2019 00:25:02 -0700 (MST)From: Robin2 <robin@nbleopard.com>To: discuss@lists.openscad.orgSubject: Re: [OpenSCAD] How to make a cylinder perpendicular to a sloping faceMessage-ID: <1568013902108-0.post@n5.nabble.com>Content-Type: text/plain; charset=us-asciiadrianv wrote> Out of curiosity, how might your original query be answered with a method> that does not require learning something new?  > > --> Sent from: http://forum.openscad.org/> > _______________________________________________> OpenSCAD mailing list> Discuss@.openscad> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.orgI agree completely. I had just been hoping that there was a simpler Openscadsolution that I was not aware of - especially as it seems so much anintegral capability of Freecad and SolveSpace...R--Sent from: http://forum.openscad.org/------------------------------Subject: Digest Footer_______________________________________________Discuss mailing listDiscuss@lists.openscad.orghttp://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org------------------------------End of Discuss Digest, Vol 58, Issue 8**************************************
R
Robin2
Mon, Sep 9, 2019 8:23 PM

jim_klessig wrote

From my point of view, it comes down to the fundamental difference in the
conceptual way Fc and openscad work. In FC, you have an object from which
you can "grab" a face, a line, or a point, and do something to it, or in a
specific relationship to it.In Openscad, there really is nothing to
"grab".

I do understand the difference and I find the way Openscad works suits my
"brain" better. Nevertheless the absence of the easy ability to relate one
object to the face of another seems like a significant shortcoming. At the
same time I have no idea how to deal with it. Perhaps it is just impossible
given the way in which Openscad models are defined.

Of course there is a great deal that can be done with Openscad without
needing this capability. And maybe there can be a workaround by creating the
object on the face first - while the face is known to be in a standard
plane.

...R

--
Sent from: http://forum.openscad.org/

jim_klessig wrote > From my point of view, it comes down to the fundamental difference in the > conceptual way Fc and openscad work. In FC, you have an object from which > you can "grab" a face, a line, or a point, and do something to it, or in a > specific relationship to it.In Openscad, there really is nothing to > "grab". I do understand the difference and I find the way Openscad works suits my "brain" better. Nevertheless the absence of the easy ability to relate one object to the face of another seems like a significant shortcoming. At the same time I have no idea how to deal with it. Perhaps it is just impossible given the way in which Openscad models are defined. Of course there is a great deal that can be done with Openscad without needing this capability. And maybe there can be a workaround by creating the object on the face first - while the face is known to be in a standard plane. ...R -- Sent from: http://forum.openscad.org/