@cdub I had overlooked the 'relativeTo' parameter of the rotate function. It makes sense now.
Posts made by cdub
-
RE: Rotate Object
-
Rotate Object
Is there a way to rotate an object around a different origin point other than the object's center? As an example. Let's say I have a door object with hinges. I'd like to rotate the door about the hinge axis to simulate opening and closing a door by altering the rotation angle. How can this be done?
-
RE: Embedding a design in a website
@hrgdavor and @platypii. Thank you for your contributions and for sharing the repos. The work completed here is certainly impressive. I look forward to digging into the code to learn other creative and productive ways of using the JSCAD viewer. The https://jscad.app has a fresh modern cad application feel. Especially with the addition of the orientation cube.
-
RE: Embedding a design in a website
Hi Folks. There hasn't been much activity on this topic, but I was hoping to kick this around some more. I'm very interested in the idea of embedding the JSCad viewer into a webpage. More specifically with dynamic user parameter implementation like the current JSCad web implementation.
@z3dev wrote the Vue wrapper and was extremely helpful in dissecting this stuff. Tutorial6 gets me most of the way,
With the tutorial6 code, I was able to add a numeric spinner to change a radius value (z3dev implemented already). This works o.k. and the new geometries are added to the view after 'compile'.
My question is: After the new geometries are added to the JScad viewer, how do I refresh the render to only show the newly added geometries? I don't fully understand the rendering code to know how to approach this. Any help is appreciated.