properties.ofp 319 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import OpenMeshPython as om
import numpy as np


core.clearAll()

id = primitivesgenerator.addSphere()
mesh = om.getMesh(id)

if not mesh.has_vertex_property("v:points"):
  core.exitFailure()

for vh in mesh.vertices():
  if not np.allclose(mesh.vertex_property("v:points", vh), mesh.point(vh)):
    core.exitFailure()