cork
cork copied to clipboard
3D Boolean / CSG Library
Hi,when I use this lib in my project in vs 2019, it always show the error about"LINK2001 An external symbol that cannot be parsed triangulate()",could you give me some advice?
194 obj/isct/triangle.o: src/isct/triangle.c 195 @echo "Compiling the Triangle library" 196 @$(CC) **$(CCFLAGS)** -DNO_TIMER \ 197 -DREDUCED \ 198 -DCDT_ONLY -DTRILIBRARY \ 199 -Wall -DANSI_DECLARATORS \ 200 -o obj/isct/triangle.o -c src/isct/triangle.c
For [Godot](http://www.godotengine.org), I had to implement my own CSG library as we needed something compatible with MIT. If anyone wants to take it out and make a standalone lib, please...
``` { std::vector args1; args1.push_back("-union"); args1.push_back("ballA.off"); args1.push_back("ballB.off"); args1.push_back("ballC.off"); cmds.runCommands(std::begin(args1), std::end(args1)); } { std::vector args1; args1.push_back("-union"); args1.push_back("ballA.off"); args1.push_back("ballB.off"); args1.push_back("ballC1.off"); cmds.runCommands(std::begin(args1), std::end(args1)); } ``` ballC.off and ballC1.off are different
Hi there, I was wondering how to use the remesh functions (or in general, how to interact with mesh.h) - is there some example code I could take a look...
two changes were found necessary in order to use cork in my project: 1. I had to bump the output precision in the off file higher to avoid topological errors...
Resolves gilbo/cork#30
Hello, I am getting following crash on a difference operation: **Exception thrown: read access violation. rightvertex was nullptr.** in triangle.c on line 11835 (if (((leftvertex[0] == endpoint2[0]) && (leftvertex[1] ==...
In src/mesh/mesh.isct.tpp about line 517, you use free() to free memory that allocated by "new" operator, there should be "delete[]". It crashes on MacOS. There also need some pointer check...
deleted (found it)