JSCAD User Group
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Build a specialized graphical editor

    Scheduled Pinned Locked Moved Design Discussions
    3 Posts 2 Posters 1.2k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • gilboonetG Offline
      gilboonet
      last edited by gilboonet

      Hello, years ago I made an editor that used pre V1 JSCAD to help me build structures and I'm wondering whether it is now possible to do the same using V2 JSCAD.

      This editor is a little like a polyhedron editor except that there's no control on Z axis. The structure consist of a net of shelves using a common array of vertices, so that when a vertice is moved, it also moves all shelves that are using it.

      Capture d’écran de 2022-04-14 14-08-35.png

      The editor is made of a JSCAD script that uses an hidden parameter and a js/html UI where the vertices and the shelves are created and moved, synced to the hidden JSCAD paramter. Rendering is done by clicking "Update" on JSCAD UI. I also added load/save of data (vertices and shelves).

      Do you have an entry point I can use to do the same using V2 JSCAD ?

      At least I could try to make a simpler JSCAD script that loads a data file, but how can I achieve this ? Using require ? or JSON ?

      The editor is here : http://gilboo.carton.free.fr/OJSC5/edit_ner2.html

      1 Reply Last reply Reply Quote 0
      • hrgdavorH Offline
        hrgdavor
        last edited by

        for now best piece of code to start with using jscad standalone or creating an app is I think in packages/utils/regl-renderer/demo.html

        it is the basis I used for my jscad experiments

        gilboonetG 1 Reply Last reply Reply Quote 0
        • gilboonetG Offline
          gilboonet @hrgdavor
          last edited by

          @hrgdavor Thank you, I will try from this demo.html file. I already used that file at early stage of V2 to take snapshots of a scene to create an animation, but I'm not sure I understood it all.

          1 Reply Last reply Reply Quote 0

          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
          • First post
            Last post
          Powered by NodeBB | Contributors