Hey everyone I'm pretty new to graphics programming and I want some guidance or working samples, I want to make any 3D objects but for starters I want to make a 3D cube using triangle mesh with given coordinates via python, and export all the mesh in an .obj file so I can load the mesh and view it in meshlab.
I would really love some guidance on this thanks.
if you are comfortable with meshlab you could find useful pymeshlab
https://pymeshlab.readthedocs.io
Here is a simple tutorial on how to create a mesh from just array of coords and indexes...
https://pymeshlab.readthedocs.io/en/latest/tutorials/import_mesh_from_arrays.html
Related
I'm working on this paper in which I'm simulating Vibration of Pipe Elbows with FEM, originally I made this in Matlab but then I migrated to Python.
Basically my data is stored in nodes, like this, where I have the coordinates of the node on the centerline of the pipe and the coordinates of the centerline of the cross-section.
I would like to use these data to make a smooth surface plot like this other one from this paper. But I'm not really sure about what function of Matplotlib I could use to work this out.
Somebody has an idea for this?
I am looking for an approach to transform a 2D human head into 3D model and then animate its speech based on an audio file.
I tried some approaches such as meshTalks but the approach uses a pre generated 3d human head meshes.
Any help would be appreciated.
Thank you
I am using win10, python and c#. I want to calculate circumference of human parts (belly, biceps etc) with using point cloud or 3d scans like .stl .obj .ply. Now I can get the point cloud of human body with kinect v2. I have point cloud of human body, scanned 3d human body in .stl .obj .ply formats.
I need some ideas and infos about it. I don't know how to analyse the things I have and how to calculate what I want.
Here I found an example of what I am trying to do but It doesn't need to be perfectly stable like that, Its for a school homework. Maybe you can give me some ideas about how to achieve my goal. Thank you for your help.
https://www.youtube.com/watch?time_continue=48&v=jOvaZGloNRo
I get 3d scanned object with kinect v2 and use PCL to convert it into point cloud.
I don't know about using PCL with Python or C#. In general you are looking at the following steps:
Filtering the points to the interested region
Segmenting the shape
Extracting the parameters
If you're interested in only Python, then OpenCV might be the best option. You can also develop the core logic in C++ and wrap it for Python or C#. C++ also has some nice UI libaries (Qt, nanogui), please see the following details for achieving the objective with PCL
Filtering
CropBox or PassThrough can be used for this. It'll result in similar results as shown in the image assuming that the frame has been chosen properly. If not, the points cloud can be easily transformed
Segmenting the shape
Assuming you want an average circumference, you might need to experiment with Circle 2D, Circle 3D and Cylinder models. More details regarding usage and API are here. The method chosen can be simple SAC (Sample Consensus) like RANSAC (Random SAC) or advanced method like LMEDS (Least Median of Squares) or MLESAC (Max Likelihood Estimation SAC)
Extracting the parameters
All models have a radius field which can be used to find the circumference using standard formula (2*pi*r)
Disclaimer: Please take note that the shape is circular, not ellipse and the cylinder are right angled cylinders. So if the object measured (arm, or bicep) is not circular, the computed value might not be close to ground truth in extreme cases
I'm working with 3D meshes using vtk. I want to apply the scale transformation filter but it works holding, as a reference, the origin of the mesh. Now I would like to apply the same transformation but using a different fixed point.
The idea is to change the origin of the mesh to that point and than to apply the filter. Is it possible in vtk or with other libraries? Is there another method that works better?
I attach here two images that explain the problem.
Thank you in advance!
I want to make a 3d point cloud from 3d modeling file(dae, obj...) using python code.
like http://upload.wikimedia.org/wikipedia/commons/4/4c/Point_cloud_torus.gif
I have no idea where to begin. Do I need polygon or mesh data or something?
If there were any algorithm for this let me help.
I saw many questions about create mesh from point cloud but it`s very hard to find about this topic.
thanks.