IO: C++ STL exporter #114862

Merged
Aras Pranckevicius merged 19 commits from aras_p/blender:io-cpp-stl-exporter into main 2023-11-19 16:41:30 +01:00

19 Commits

Author SHA1 Message Date
Aras Pranckevicius 35eccd41f8 STL: code style 2023-11-19 17:40:02 +02:00
Aras Pranckevicius 68f9bd3568 Merge branch 'main' into io-cpp-stl-exporter
buildbot/vexp-code-patch-coordinator Build done. Details
2023-11-19 13:32:23 +02:00
Aras Pranckevicius d12aef25f4 STL: simplify exporter code by not using virtual classes for ascii/binary 2023-11-19 13:31:42 +02:00
Aras Pranckevicius 2240877d11 STL: code style 2023-11-19 13:09:09 +02:00
Aras Pranckevicius ad5d7abca5 Merge branch 'main' into io-cpp-stl-exporter
buildbot/vexp-code-patch-coordinator Build done. Details
2023-11-17 14:57:24 +01:00
Aras Pranckevicius 770b865fbc STL: fix export of normals and object transform 2023-11-17 14:44:49 +01:00
Aras Pranckevicius 4f65036c93 STL: format 2023-11-14 20:29:33 +02:00
Aras Pranckevicius 04cc1590c2 STL: cleanups from code review 2023-11-14 20:28:25 +02:00
Aras Pranckevicius f8daa40e3c STL: do not use fstream/fopen directly (would fail on windows with non-ascii paths) 2023-11-14 20:20:07 +02:00
Aras Pranckevicius 2090aa76e1 STL: naming conventions
- use_apply_modifiers -> apply_modifiers
- use_selection_only -> export_selected_objects
- use_ascii -> ascii_format
2023-11-14 16:26:27 +02:00
Aras Pranckevicius 8a804f49bf Merge branch 'main' into io-cpp-stl-exporter
# Conflicts:
#	scripts/startup/bl_ui/space_topbar.py
#	source/blender/editors/io/io_stl_ops.cc
#	source/blender/io/stl/CMakeLists.txt
#	source/blender/io/stl/IO_stl.cc
#	source/blender/io/stl/IO_stl.hh
2023-11-14 16:07:02 +02:00
Eyad Ahmed f973604fe6 C++ STL exporter: rename #vert_positions span variable from "vertices" to "positions" 2023-04-12 03:10:31 +02:00
Eyad Ahmed 6b163cf416 C++ STL exporter: call mesh->vert_positions() once outside loop and use the new looptris span 2023-04-12 03:10:30 +02:00
Eyad Ahmed 2f0f20e9e5 C++ STL exporter: write binary triangles using a single fwrite call with a packed struct 2023-04-12 03:10:30 +02:00
Eyad Ahmed e14930a7bd C++ STL exporter: include object names in exported file names when "Batch" option is enabled 2023-04-12 03:10:30 +02:00
Eyad Ahmed 5ddf1b05f9 C++ STL exporter: adhere to Blender's comment style 2023-04-12 03:10:30 +02:00
Eyad Ahmed 5a55222d7c C++ STL exporter: calculate and apply scale and axis transform 2023-04-12 03:10:30 +02:00
Eyad Ahmed f7a7ea9774 C++ STL exporter: use cached loop triangles instead of converting to BMesh to triangulate and converting back to Mesh 2023-04-12 03:10:30 +02:00
Eyad Ahmed bd9e48abe3 IO: C++ STL exporter 2023-04-12 03:10:30 +02:00