export to obj with groups and same mesh
Moderator: oliveroxtoby
Forum rules
and Helpful information for the FEM forum
and Helpful information for the FEM forum
Re: export to obj with groups and same mesh
- Attachments
-
- cyclone8.obj
- (20.03 KiB) Downloaded 99 times
Re: export to obj with groups and same mesh
git commit 361951e now offers a GUI method to define the groups. As discussed before you have to define colors per faces and then use the Standard mesher and set the option to create the segments.
Re: export to obj with groups and same mesh
- open attached file cyclone--colors
- change to Mesh Design workbench
- select the object Fusion in Tree View
- Menue Meshes --> create mesh from shape
- change to standard mesher
- activate checkbox "Define segements by face colors"
- use a Surface deviatiation of 0.1 mm or any other which would you like to have
- click on "OK"
- I only get one mesh ?! Shouldn't there be three meshes according to the colors or are these segments inside the new mesh. If they are inside how to make them visible?!
- If I export the mesh to object and reimport I still have one mesh after reimport.
OS: Debian GNU/Linux 8.5 (jessie)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.8383 (Git)
Build type: Unknown
Branch: master
Hash: eac69724aab11e0dc872c6bc2508ad12f5047234
Python version: 2.7.9
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 7.0.0
- change to Mesh Design workbench
- select the object Fusion in Tree View
- Menue Meshes --> create mesh from shape
- change to standard mesher
- activate checkbox "Define segements by face colors"
- use a Surface deviatiation of 0.1 mm or any other which would you like to have
- click on "OK"
- I only get one mesh ?! Shouldn't there be three meshes according to the colors or are these segments inside the new mesh. If they are inside how to make them visible?!
- If I export the mesh to object and reimport I still have one mesh after reimport.
OS: Debian GNU/Linux 8.5 (jessie)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.8383 (Git)
Build type: Unknown
Branch: master
Hash: eac69724aab11e0dc872c6bc2508ad12f5047234
Python version: 2.7.9
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 7.0.0
- Attachments
-
- cyclone--colors.fcstd
- (10.65 KiB) Downloaded 96 times
Re: export to obj with groups and same mesh
Not yet at this time. Here it internally just creates the segments and when exporting it as obj they are used to achieve the grouping.- I only get one mesh ?! Shouldn't there be three meshes according to the colors or are these segments inside the new mesh. If they are inside how to make them visible?!
When running this snippet after creating the mesh it reports "3":
Code: Select all
App.ActiveDocument.ActiveObject.Mesh.countSegments()
Code: Select all
mesh=App.ActiveDocument.ActiveObject.Mesh
for i in range(mesh.countSegments()):
Mesh.show(mesh.meshFromSegment(mesh.getSegment(i)))
This is supposed to work. Since the segments are created I guess there must be a bug that they are not used for the obj export. I will have a look...- If I export the mesh to object and reimport I still have one mesh after reimport.
Re: export to obj with groups and same mesh
For the moment you have to use the export function from the Mesh menu. The general export doesn't support this at the moment.
Re: export to obj with groups and same mesh
@werner:
For others:
- open attached file cyclone--colors
- change to Mesh Design workbench
- select the object Fusion in Tree View
- Menue Meshes --> create mesh from shape
- change to standard mesher
- activate checkbox "Define segements by face colors"
- use a Surface deviatiation of 0.1 mm or any other which would you like to have
- click on "OK"
- select the new Mesh in TreeView --> Menu File Export --> export to object format
- reimport into FreeCAD will create 3 meshes which fit together at the vertices
For others:
- open attached file cyclone--colors
- change to Mesh Design workbench
- select the object Fusion in Tree View
- Menue Meshes --> create mesh from shape
- change to standard mesher
- activate checkbox "Define segements by face colors"
- use a Surface deviatiation of 0.1 mm or any other which would you like to have
- click on "OK"
- select the new Mesh in TreeView --> Menu File Export --> export to object format
- reimport into FreeCAD will create 3 meshes which fit together at the vertices
- Attachments
-
- cyclone--colors.fcstd
- (10.65 KiB) Downloaded 106 times
-
- cyclone9.obj
- (9.68 KiB) Downloaded 102 times
-
- Posts: 4
- Joined: Sat Jan 10, 2015 4:12 pm
Re: export to obj with groups and same mesh
This does split the boundary regions into separate sets of grouped faces, but each group is named "Group". Is it possible to assign an index within the group name, ideally for our usual naming convention of "patch", it would be: patch0, patch1, ... patchN
Thanks, Chris
Thanks, Chris