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.
-
@cdub I have been slowly working on providing bits and pieces to create different apps/websites with jscad embeded in different ways here
https://github.com/hrgdavor/jscadui/ ... contributors are welcomeone of demos is about making a new version of jscad web https://jscad.app that was actually made by @platypii
Although my progress is slow there, that is also one place where you could find useful stuff.
-
@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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login