plasm-language / pyplasm

http://www.dia.uniroma3.it/~paoluzzi/plasm502/
Other
54 stars 24 forks source link

stl export #34

Open fzellini opened 2 months ago

fzellini commented 2 months ago

(Not technically an issue, but maybe would be an enhancement in documentation.) First of all, thank you for the excellent work. I am currently using openscad to make 3d models to print with a 3d printer, but i don't like so much openscad strange language. As python programmer, i found pyplasm and i started to test, it works beautifully, but i do not found a way to save the model in stl format in order to 3d-print it. The "save" function in file "pisa.py" save a binary file in hpc format. What is this format ? Is it possible to convert in stl format ? Best Regard and ciao.

scrgiorgio commented 2 months ago

thanks.

the HPC is an XML-like format that saves the hierarchy of nodes (i.e. mainly transformation matrices plus some properties) and the geometries (called "Batch" in the code). There is no code to export an "assembly" to OBJ/STL. However, writing some code that translates the XML to other formats should not be too complicated. G.

fzellini commented 2 months ago

OK, thanks. Is there an update planned to export models in obj or other standard 3d formats ? I think pyplasm has a lot of potential, it would be nice if it had export functionality in standard formats. This would open the doors to its wider use. F.

scrgiorgio commented 2 months ago

it could be something we could add in the near future. But I don't have an estimated time right now. G.

On Sat, Apr 27, 2024 at 1:42 AM fzellini @.***> wrote:

OK, thanks. Is there an update planned to export models in obj or other standard 3d formats ? I think pyplasm has a lot of potential, it would be nice if it had export functionality in standard formats. This would open the doors to its wider use. F.

— Reply to this email directly, view it on GitHub https://github.com/plasm-language/pyplasm/issues/34#issuecomment-2080403075, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJTZP46IG2QGGSH3UNK3ADY7NJGZAVCNFSM6AAAAABG3EADKCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBQGQYDGMBXGU . You are receiving this because you commented.Message ID: @.***>