Grouping and part_info file creation script

114 views
Skip to first unread message

spirit

unread,
Dec 23, 2012, 11:18:19 AM12/23/12
to open-3d-vie...@googlegroups.com
I have created a script that automate the creation of part_infor.txt and grouping.txt files and i have attached it to this post 
so have a look at it and let me know what happens 
part&grouping.py

Ayub khan

unread,
Jul 5, 2013, 2:25:29 AM7/5/13
to open-3d-vie...@googlegroups.com

This step is very difficult, Do you have any other option, I can easily generate files parts_info.txt and groupings.txt file 


https://groups.google.com/forum/#!topic/open-3d-viewer-discuss/tmNlEdGwPz0

Ayub

spirit

unread,
Jul 5, 2013, 5:07:40 AM7/5/13
to open-3d-vie...@googlegroups.com
after generating the part_info.txt and the grouping.txt run the make_entity_metadata.py script to generate you entitymetadata.json file 

Ayub khan

unread,
Jul 9, 2013, 1:53:49 AM7/9/13
to open-3d-vie...@googlegroups.com
Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> ================================ RESTART ================================
>>>
Enter .obj file name or directory
cube.obj
BUILDING PARTS_INFO FILE

Type"1" if you want a diplay name for your parts, if not type "0": 0
How many layers do you have: 2
Type the name of your layer and press enter NOTE: one layer at a time: cube_layer
Enter the display name for the layer above: cube
Name of next layer: cube2
Enter the display name for the layer above: cube
Enter the name for your model: cube_body

BUILDING GROUPING FILE
Below is an arry of your layers starting with an index of 1 to 2
['cube_layer', 'cube2']
Type the index of your first layer in the order you will like it to appear and press enter: 1
Type the index of the next layer: 1

YOU ARE GOING TO ARRANGE THE PARTS UNDER THEIR LAYERS USING THEIR INDEX

All arrays have an index starting with 1


Below is the array of LAYERS:
['cube_layer', 'cube2']

Below is the array of PARTS:
['cube2_cube.001', 'cube']
Number of LAYERS left: 2
Type the index of your first layer: 1
Number of PARTS left: 2
How many parts do you have under this layer: 2
Type the index of the part under this layer NOTE: ONE AT A TIME: 1
Type the index for the next part: 1
Number of LAYERS left: 1
Type the index of the next layer: 1
Number of PARTS left: 0
How many parts do you have under this layer: 1
Type the index of the part under this layer NOTE: ONE AT A TIME: 1
PART_INFO.TXT AND GROUPING.TXT FILES GENERATED
7446f903.cube.utf8
206064b3.cube.utf8
cube.js
cube.mtl
cube.obj
entity_metadata.json
groupings.txt
parts_info.txt
Reply all
Reply to author
Forward
0 new messages