Keet
Advanced Member
Netherlands
Joined: Apr 8, 2022
Post Count: 1175
Status:
Offline
|
|
Re: Export using the name in the plan
|
I don't understand what export has to do with the 3D view.
I select one or more objects in the 2D pane and export these to an OBJ file. I can't verify it but I assume that the exporter receives an array containing the selected objects. The exporter iterates over the array and each object is written to the obj file. For a box that results in six 'g blocks', each starting with the g line. The g lines get the names bottom_?, left_?, etc. An exported shape has no names at all on the g lines, only numbers. The names 'bottom', 'left', etc. must come from somewhere. The only reference I can think of is the material names. If those are available then the name of the object itself should be available too (i.e 'Box' for a box).
From what I read about the ObjWriter class it writes 'Java 3D nodes'. Since I'm not familiar with Java I have no idea what exactly is a Java 3D node (I didn't get any wiser from the Java documentation), but to be able to write the selected object that object must be available, maybe as a property of the node instance?
What am I missing or what do I not understand?
Edit-To-Add: After some further investigation I think I found where the g name comes from: the node name. Unfortunately I can't find where the node name is set so I can only guess if at that point the object name is available and can be set as the node name.
----------------------------------------
Dodecagon.nl 800+ 3D models, manuals, and projects
----------------------------------------
[Edit 1 times,
last edit by Keet at Aug 17, 2023, 3:32:32 PM]
|
[Aug 16, 2023, 5:46:19 PM]
|
|
[Link]
|
|