I've just have started to work with Blender and have a problem with importing data in it...
I have a point cloud data and importing it to Blender via Python script
import numpy as np
from deflectometry.geometry.mesh import Mesh
pts = cPickle.load(open(fn,"rb"))
# Bring the points to blender
m = Mesh()
pts = np.asarray(pts)
# pts /= 1000.maybe when converting from mm to blender units
m.verts = pts
With the first variant of pts representation it gives an error. With the second one there is no error, but data is not displayed at all... What could be wrong here?
Using a Code tag would help preserve the indentation.
I don't see what you mean by 1st & 2nd variants.
It looks like (hard to tell without the indentation) you are creating stuff inside a function which returns something, but you never assign that something to a variable. In the meantime, everything inside the function has gone out of scope and disappeared.