-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors #8
Comments
@FRex Did you ever resolve your problem? Are you still using this library, or have you found an alternative? |
@themmes Sorry, no to all. It was one of my random playthings with Irrlicht and CSG (I have a thing for retro games and DarkEngine and Unreal Engine 1 were almost all about CSG for level geometry), not anything serious. |
@FRex I see, thanks for your quick reply. It seems impossible to find a capable 3D geometry library for Python.. |
@themmes Yes, I tried hard to find a C, C++ or Python 3D CSG library that wasn't abandoned, old, with bugs, inconvenient to build (requiring GMP), etc. too back then while for 2D it was easy to find the equivalent of CSG (ClipperLib C++/C#/Delphi by Angus Johnson). |
I want to have a single cube and then from it subtract another one that is rotated along around three axes. However it results in errors, the outside cube has a slash through it (so to speak).
See (textures being messy is okay, the hole is what the mistake is): http://i.imgur.com/HxpoRCX.png
The second cube is defined in the txt file.
Format of the txt is:
int amount of meshes,
for each mesh: int operation () + 0 0 0 (quirk of the thing that spits these out) + int amount of polys,
for each poly format is: amount of vertices + that many triplets of x y z.
It's just two cubes with 256 unit long sides but each vertex was transformed by a 4x4 matrix.
If I use the same cube with no rotations (identity matrix or just a translation) it works.
Is this an error related to numeric precision, some csg quirk?
Here is the data that causes the error (there are two cubes but first is skipped because it has op 0) and the Python3 script I use:
https://gist.github.com/FRex/6ca78af50f21e1cf7bdd342965a2b6f4
The text was updated successfully, but these errors were encountered: