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

    A questions about project()

    Scheduled Pinned Locked Moved Development Discussions
    3 Posts 2 Posters 1.1k Views 1 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.
    • jess yanJ Offline
      jess yan
      last edited by jess yan

      @z3dev
      When I use project() to try to project the .stl model onto a 2d plane, the console prompts:
      截屏2021-09-27 下午2.18.08.png
      But the 3d model can be displayed normally.

      This problem does not appear in all .stl models, only complex .stl models will appear in this problem.

      I debugged and found that the cause of this problem was that poly3.toPoints() returned an empty array.
      60f9aa8e-2aea-4f4f-8f7a-72975d45abc5-image.png

      Should the empty array be filtered before calling poly3.toPoints()?

      z3devZ 1 Reply Last reply Reply Quote 0
      • z3devZ Offline
        z3dev @jess yan
        last edited by

        @jess-yan this could be a bug, but again many STL meshes are full of holes and incomplete.

        It would be best to open a new issue at GitHub. And attach one of those ‘bad’ STL files.

        jess yanJ 1 Reply Last reply Reply Quote 0
        • jess yanJ Offline
          jess yan @z3dev
          last edited by

          @z3dev
          Ok, I have submitted an issue on github.
          https://github.com/jscad/OpenJSCAD.org/issues/916

          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