-
Hello! I am running into a challenge regarding the vertex data output from data.solutions.raw_arrays.vertices. From what I can tell, it appears that the vertex data (x, y, z arrays) is scaled between -1 and 1, but I am struggling to accurately convert these scaled values back to their original spatial coordinates or find how they were transformed in the first place. What would be the correct approach or formula to convert these scaled coordinates back to their original spatial dimensions? Sorry if this is outlined clearly in the documentation, im having trouble finding it |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Thanks for your response! Im trying to access the vertices and edges of the interpolated surfaces, for reconstruction in blender which I can do via: # Access the vertices and edges from the solutions object
all_vertices = data.solutions.raw_arrays.vertices
all_edges = data.solutions.raw_arrays.edges
# access Blender's context
scene = bpy.context.scene
for i, vertices in enumerate(all_vertices):
# Create a new mesh and object for each set of vertices
mesh = bpy.data.meshes.new(f'GeoModel_{i}')
obj = bpy.data.objects.new(f'GeoModel_{i}', mesh) Where it creates a mesh for each set of vertices which is nice because then I have a separate object for each surface. But the only issue is that it is scaled down to values between -1 and 1 (I think) so very small and not in the right spatial location. The |
Beta Was this translation helpful? Give feedback.
Ah ok for the meshes it is a different story, sorry got that wrong. I am pretty sure that the
.transofrm
works here:The index refers to you specific mesh in teh structural frame.