Author Topic: Question about Voronoi calculation  (Read 36 times)

Qriver

  • Newbie
  • *
  • Posts: 7
Question about Voronoi calculation
« on: June 08, 2018, 07:19:57 PM »
Hi eveyone,
I used the code about computing Voronoi indices in the Ovito website, and the code is shown below. i do not know it said:"AttributeError: 'Particles.VoronoiAnalysisModifier' object has no attribute'max_face_order'"
Thanks!
Shuai

Alexander Stukowski

  • Administrator
  • Sr. Member
  • *****
  • Posts: 395
Re: Question about Voronoi calculation
« Reply #1 on: June 08, 2018, 11:52:13 PM »
Dear Shuai,

I suspect you are trying to run this script using Ovito 3.0.0-dev. Is that right? The example code you took from the website is for the stable release 2.9.0. The current development release 3.0.0-dev is not 100% backward-compatible, because the Python programming interface did slightly change.

An updated version of the Voronoi analysis script for Ovito 3.0.0-dev is included with the new documentation that gets installed along with the program and which can also be found online:

http://ovito.org/manual_testing/python/introduction/examples.html#example-compute-voronoi-indices

-Alex

Qriver

  • Newbie
  • *
  • Posts: 7
Re: Question about Voronoi calculation
« Reply #2 on: June 09, 2018, 04:37:50 AM »
Hi Alex,
You are right, thank you very much!
Shuai