Comments (8)
The both algorithms are pretty much tied together, bulk of the code is used for both. If you need only poly booleans, you can take a look at Clipper: http://www.angusj.com/delphi/clipper.php
IIRC it is bigger library, though.
from tess2.js.
Thanks for quick reply.I am only looking for javascript module and jsclipper is also a big library. One more thing I could not get documentation for polygon boolean functions, the document (http://www.glprogramming.com/red/chapter11.html) you mentioned tells more about tesselation.
from tess2.js.
If you set element type to Tess2.BOUNDARY_CONTOURS
you will get polygons back. They're called contours since the code can also tesselate the input polygons (contours) into convex polygons.
from tess2.js.
The Red Book chapter will tell you how to implement common boolean operations (union, sub, intersect) based on the windings used by the library.
from tess2.js.
I am familiar with boolean operation in concept. But I was looking which function should I use to get the output. Like
var intersection = tess2.intersection(poly1, poly2)
from tess2.js.
Search for "CSG Uses for Winding Rules" in the red book linked above.
The library was originally written to tesselate polygons, but it can do boolean ops too, but the API is not the cleanest for that purpose.
from tess2.js.
Thanks, I'll go through it.
from tess2.js.
Satisfy my requirement https://github.com/w8r/GreinerHormann
from tess2.js.
Related Issues (3)
- Publishing on NPM? HOT 9
- "TRUE"? What does that mean? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tess2.js.