Closed Septaris closed 7 years ago
Looks good. I like the 'cli' solution Could you make this pull request for the 'develop' branch? I notices some issues with the voxelisation and I want that fixed before I merge more of it into the master. Looks like I might have to scrape off a thick layer of rust from my linear algebra education for that, how is yours?
My bad for the master branch ^^
For the cli it's just a first draft of what we can do with commands/subcommands. We can go further with a task system, in which we decouple the different actions in sub-commands and combine them using a pipe like syntaxe.
I was not bad in algebra but I have not practiced since a long time :)
So much for algebra, was an weird floating point issue.
Do you happen to have gcc installed on a windows 64 bit system? I would like to offer the c library if possible.
'PyVoxelizer/voxlib/voxelintersect/triangleCube.c'
gcc -Wall -fPIC -O2 -c triangleCube.c gcc -shared -o triangleCube.so triangleCube.o
and voila (I hope it'll work^^)
Compiler version:
gcc.exe (i686-posix-sjlj-rev0, Built by MinGW-W64 project) 5.1.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Thank you! I pushed it into the develop branch of PyVoxelizer. Would be great if you could give it a try. I put a try catch around the critical parts, but I have no proper way of testing if bad errors are caught properly. I plan to make a forum post about SMBEdit at some point, in the hope of getting more feedback.
Everything seems to work with the latest version of smbedit / voxlib / meshreader (Win10, 64bit).
I have got just some warnings during obj reading [ObjReader] WARNING: Unknown key: s
(cf the zip file)
vorastra.zip
Modifications
Usage
Once the package is installed with pip, the list of subcommands is available using
smb -h
:smb edit
is an alias forsmbedit
whereassmb voxelize
is the new subcommand to voxelize 3D models:Example
Model voxelization with a 270 degrees clockwise rotation around x axis:
and smoothing of the new blueprint: