generate mesh from mocap file and volum of mesh at each step
hi every one,
I would like to use sfepy for a new project
In this project i use a mocap file ( with 52 points (x,y,z) recorded during 2 minutes)
I would like to make a mesh of this points every second and be able to get volume and the surface changes
My problem is to generated the mesh
can you give me a idea about how build my code to generate the mesh and use it in sfepy? best regards henri
Hi Henri,
you could try to use [1] to generate a mesh from a cloud of points. Does it help?
r.
[1] http://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.Delaunay.h...
On 07/23/2012 02:20 PM, henri wrote:
hi every one,
I would like to use sfepy for a new project
In this project i use a mocap file ( with 52 points (x,y,z) recorded during 2 minutes)
I would like to make a mesh of this points every second and be able to get volume and the surface changes
My problem is to generated the mesh
can you give me a idea about how build my code to generate the mesh and use it in sfepy? best regards henri
Hi,
It's a way to quickly build a mesh and knowing volume and surface i have done it already
but later i need to look at muscle and tissu elastic possibilities
so i would like to be able to get a mesh directly in sfepy
i don't know how to pass my mesh (from scipy delanay and convexhull tools) to sfepy.
Le lundi 23 juillet 2012 14:41:57 UTC+2, Robert Cimrman a écrit :
Hi Henri,
you could try to use [1] to generate a mesh from a cloud of points. Does it help?
r.
[1] http://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.Delaunay.h...
On 07/23/2012 02:20 PM, henri wrote:
hi every one,
I would like to use sfepy for a new project
In this project i use a mocap file ( with 52 points (x,y,z) recorded during 2 minutes)
I would like to make a mesh of this points every second and be able to get volume and the surface changes
My problem is to generated the mesh
can you give me a idea about how build my code to generate the mesh and use it in sfepy? best regards henri
On 07/23/2012 02:50 PM, henri wrote:
Hi,
It's a way to quickly build a mesh and knowing volume and surface i have done it already
but later i need to look at muscle and tissu elastic possibilities
so i would like to be able to get a mesh directly in sfepy
i don't know how to pass my mesh (from scipy delanay and convexhull tools) to sfepy.
I do not have experience with scipy delanay, but it returns a list of vertices, and the element connectivity, right? So it should be easy to build and save a sfepy mesh from it, using Mesh.from_data() in sfepy.fem.mesh, see [2].
Or, alternatively, use UserMeshIO class in the problem description file with your muscle tissue problem as follows:
### from sfepy.fem import Mesh from sfepy.fem.meshio import UserMeshIO
def mesh_hook(mesh, mode): """ Define a mesh programmatically. """ if mode == 'read': # Read your points, use Delaunay etc. mesh = Mesh.from_data(...) return mesh
elif mode == 'write':
pass
filename_mesh = UserMeshIO(mesh_hook) ###
r.
Le lundi 23 juillet 2012 14:41:57 UTC+2, Robert Cimrman a écrit :
Hi Henri,
you could try to use [1] to generate a mesh from a cloud of points. Does it help?
r.
[1] http://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.Delaunay.h...
[2] http://sfepy.org/doc-devel/src/sfepy/fem/mesh.html
On 07/23/2012 02:20 PM, henri wrote:
hi every one,
I would like to use sfepy for a new project
In this project i use a mocap file ( with 52 points (x,y,z) recorded during 2 minutes)
I would like to make a mesh of this points every second and be able to get volume and the surface changes
My problem is to generated the mesh
can you give me a idea about how build my code to generate the mesh and use it in sfepy? best regards henri
i havent look at mesh from data i m going to take a look at this idea
thanks
best regards henri
Le lundi 23 juillet 2012 14:20:39 UTC+2, henri a écrit :
hi every one,
I would like to use sfepy for a new project
In this project i use a mocap file ( with 52 points (x,y,z) recorded during 2 minutes)
I would like to make a mesh of this points every second and be able to get volume and the surface changes
My problem is to generated the mesh
can you give me a idea about how build my code to generate the mesh and use it in sfepy? best regards henri
participants (2)
-
henri
-
Robert Cimrman