csg.js | Constructive solid geometry on meshes using BSP trees | Graphics library

 by   evanw JavaScript Version: Current License: MIT

kandi X-RAY | csg.js Summary

kandi X-RAY | csg.js Summary

csg.js is a JavaScript library typically used in User Interface, Graphics applications. csg.js has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

Constructive Solid Geometry (CSG) is a modeling technique that uses Boolean operations like union and intersection to combine 3D solids. This library implements CSG operations on meshes elegantly and concisely using BSP trees, and is meant to serve as an easily understandable implementation of the algorithm. All edge cases involving overlapping coplanar polygons in both solids are correctly handled.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              csg.js has a medium active ecosystem.
              It has 1651 star(s) with 256 fork(s). There are 78 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 11 open issues and 9 have been closed. On average issues are closed in 149 days. There are 5 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of csg.js is current.

            kandi-Quality Quality

              csg.js has 0 bugs and 0 code smells.

            kandi-Security Security

              csg.js has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              csg.js code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              csg.js is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              csg.js releases are not available. You will need to build from source code and install.
              Installation instructions are not available. Examples and code snippets are available.
              csg.js saves you 181 person hours of effort in developing the same functionality from scratch.
              It has 448 lines of code, 0 functions and 6 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of csg.js
            Get all kandi verified functions for this library.

            csg.js Key Features

            No Key Features are available at this moment for csg.js.

            csg.js Examples and Code Snippets

            No Code Snippets are available at this moment for csg.js.

            Community Discussions

            QUESTION

            CSG (THREE.js) » Import local csg.js into another JS-File?
            Asked 2020-Jan-03 at 04:57

            I wish you all a happy new year.

            I've only been working with Javascript for 2-3 months and I'm still a beginner.

            I want to work with THREE.js and especially with CSG, so that I can subtract two obj models from each other using boolean operations. For this purpose I import the respective local files in a central JavaScript file, so that I can work with them in it.

            With THREE.js, OBJLoader2, etc. I have solved it that way:

            ...

            ANSWER

            Answered 2020-Jan-03 at 04:57

            Use my csg library :) Its more robust than the existing csg library.

            https://github.com/manthrax/THREE-CSGMesh

            Source https://stackoverflow.com/questions/59566648

            QUESTION

            Unexpected result using ThreeCSG
            Asked 2018-Jun-01 at 11:32

            I'm experimenting with the ThreeCSG library and am attempting to swap out the sphere or normal geometry for a custom made Shape, in this case the heart shape from the 3js examples.

            Unfortunately I'm getting an odd result on the side that faces the camera. Here's a code sample:

            ...

            ANSWER

            Answered 2018-Jun-01 at 11:32

            ThreeCSG cannot subtract a concave mesh correctly. But there is a workaround, since both halves of a heart or convex.

            You can subtract the right half of the heart from a cuboid:

            Source https://stackoverflow.com/questions/47819331

            QUESTION

            Threejs apply clipping to specific area of the object
            Asked 2017-Jun-08 at 16:57

            I'm using THREE.Plane to clip my STL model.

            ...

            ANSWER

            Answered 2017-Jun-08 at 16:57

            Edit: Follow WestLangley's advice. I'll leave this her as an alternate though less efficient means of performing the clipping.

            Clipping planes are infinite. There's no getting around that. So what can you do? Multiple clipping planes in multiple render passes!

            To do this, you'll need to turn off auto-clearing, and do your own manual buffer clearing.

            Source https://stackoverflow.com/questions/44325757

            QUESTION

            Three.js fast text engraving
            Asked 2017-Mar-11 at 12:00

            I'm trying to engrave some text on a surface using Three.js. I've achieved it using csg.js and ThreeCSG and it works perfect, the result is really good but the problem is it takes a lot of time. On my PC it takes about 30 seconds to engrave the word Hello.

            Searching for other solution I found this site. They make custom jewelry and you can engrave text on it and the time it takes to engrave the text is really short! So I assume they are not using csg.js. What other technique can be used to achieve this result?

            I though about using bump maps, I should generate a bump map for each letter but I don't know if that's the correct approach.

            ...

            ANSWER

            Answered 2017-Mar-11 at 00:42

            I can see by looking at the shaders that the site your linked to uses bump maps.

            I don't think you would create a bump map for each letter, you would just do all the drawing (text) on a single canvas and apply that as a bump map.

            Click on "Run Code Snippet" below for a demo of canvas bump maps (click and drag in the white box).
            I hope this helps.

            Source https://stackoverflow.com/questions/42701493

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install csg.js

            You can download it from GitHub.

            Support

            Detailed documentation can be automatically generated using Docco.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/evanw/csg.js.git

          • CLI

            gh repo clone evanw/csg.js

          • sshUrl

            git@github.com:evanw/csg.js.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link