straight-skeleton
straight-skeleton copied to clipboard
Straight skeleton algorithm implementation in TypeScript
Hi there, is there an easy way to get the center line from the edges? so for example the red line here:  Any idea would be great! Thanks a...
I'm getting the following exception when feeding a polygon with one hole: ``` Error at Function.CorrectBisectorDirection (D:\Workspaces\griffin\griffin-renderer\node_modules\straight-skeleton\src\lib\SkeletonBuilder.ts:260:10) at Function.MultiSplitEvent (D:\Workspaces\griffin\griffin-renderer\node_modules\straight-skeleton\src\lib\SkeletonBuilder.ts:221:9) at Function.Build (D:\Workspaces\griffin\griffin-renderer\node_modules\straight-skeleton\src\lib\SkeletonBuilder.ts:103:11) at Function.BuildFromGeoJSON (D:\Workspaces\griffin\griffin-renderer\node_modules\straight-skeleton\src\lib\SkeletonBuilder.ts:45:27) ``` Below is an...
Have you considered adding an option to create gabled roofs as well as the hipped roof this currently produces? Instead of bisecting the angles on the end of the dormers,...
Hello, First of all thanks for this package! When i try to use it with "CommonJS" in package.json and tsconfig.json , i have succeed to load it with ``` const...
I managed to build a skeleton and make a cut with a plane to build a cut inside the contour. But now I need to build the same contour but...
Hey! I was going over all of the installed packages that our application is currently using and found out that Straight Skeleton v2.0.1 is the largest chunk of it. Would...
Here is the source: await SkeletonBuilder.init() const data = [ [7481, 274], [10509, 115], [10555, 964], [7481, 1126], [7481, 1866], [4356, 1866], [4356, -1896], [7481, -1896], [7481, 274], ] SkeletonBuilder.buildFromPolygon([data])...
https://github.com/StrandedKitty/straight-skeleton/blob/e4de1d7d67b932e813ef86c29777fb4fca2d29e3/src/core/main.cpp#L15 I understand that you might not need precise calculations, but I need to compute with micron-level accuracy. Is there a way to rebuild the version with high-precision calculations?
Hello! I'm getting the following error at runtime. RuntimeError: Aborted(Assertion failed: this->is_initialized(), at: *******/src/core/lib/boost_1_81_0/boost/optional/optional.hpp,1271,get) at l (****\straight-skeleton\node_modules\straight-skeleton\dist\index.js:1:5950) at __assert_fail (******\straight-skeleton\node_modules\straight-skeleton\dist\index.js:1:11313) at wasm://wasm/002d55ae:wasm-function[874]:0x468e1 at wasm://wasm/002d55ae:wasm-function[530]:0x271b7 at wasm://wasm/002d55ae:wasm-function[40]:0x7d88 at wasm://wasm/002d55ae:wasm-function[80]:0x10bdd at Object._create_straight_skeleton...
This function is never used in the library and can safely be removed.