JSCAD User Group

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    A questions about project()

    Development Discussions
    2
    3
    466
    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 yan
      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()?

      z3dev 1 Reply Last reply Reply Quote 0
      • jess yan
        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
        • z3dev
          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 yan 1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB | Contributors