OVITO => Support Forum => Topic started by: abaktor on March 13, 2019, 04:19:37 PM

Title: remove surface mesh
Post by: abaktor on March 13, 2019, 04:19:37 PM
Dear users,

I would like to use ovitos to perform DXA analysis without activating the surface mesh.
This is the Python script successfully used in the version 2.9:
Code: [Select]
pipeline = import_file("../moving-avg.*.cstm.gz")
modifier = DislocationAnalysisModifier()
modifier.input_crystal_structure = DislocationAnalysisModifier.Lattice.BCC
In the dev version 3.0 the latest line does not work:
Code: [Select]
Could you let me know please how to disable SurfaceMeshVis in ver 3.0 dev?

Thank you in advance.
Title: Re: remove surface mesh
Post by: Alexander Stukowski on March 14, 2019, 08:40:18 AM

The DislocationAnalysisModifier (http://ovito.org/manual_testing/python/modules/ovito_modifiers.html#ovito.modifiers.DislocationAnalysisModifier) is currently not providing direct access to the visual element of the defect mesh. This is a mistake, which I am going to fix in the next development build of Ovito 3.0.

In the meantime, you can use the following workaround:
Code: [Select]
defect_mesh = pipeline.compute().surfaces['dxa-defect-mesh']
defect_mesh.vis.enabled = False