Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Point cloud issues...(grrrrr)

Bwts

New member
Hi,


I have a 3D point cloud (x,y,z) which contains ONLY positive values but when opened in SW all the 'z' values are negative!


Why?
 
Hi Jim,


The point clouds are generated in a MATLAB code that I wrote, so I know that the co-ordinates are all positive. Just to double check I opened one of the cloud files in word pad and yep they are all positive.


I have found that the problem doesnt occur if I use 3D Sketch to trace the contours in the Point Cloud and only occurs if I create a reference plane and Sketch on the reference plane.


Why would this be?


Thanks


Bwts
Edited by: Bwts
 
Bwts,


Now that we know the source is good, let's review your import procedure... Sounds like they are coming in as ascii text... are you importing it as a *.sldcrv file then?


Can you explain the "reference plane" statement? I don't understand how you are importing a 3D point cloudonto a 2D plane... Can you tell me more about your geometry? Even better, can you upload a picture of it?


Jim
http://www.linkedin.com/in/shawengineering
 
Hi Jim, have up loaded one of the point cloud files


2010-12-16_112806_PCloud_xz_80.zip


The point cloud is two layers thick and is a cross section taken from a CT image. I open the Point Cloud as follows,


File > Open > Select 'Point Cloud' from file type pull down > click on file name


I then create a reference plane, using the refernece geometry option,coincident with the first layer of the point cloud.





Bwts
Edited by: Bwts
 
Bwts,


You must be on SW2010? I don't see that import option in my SW2009 dialog box. Sonuva...
smiley7.gif



Jim
http://www.linkedin.com/in/shawengineering
 
smiley36.gif



Yep 2010. Do you have an 'Add-Ins' option in the 'Tools' pull down? If so, add 'ScanTo3D', this will give you the Point Cloud file options in the File OPen dialogue.
 
Bwts,


Oh sweet, I just learned something new!!!! So, here's my import:


View attachment 5884


As you can see I have +x and +z, and a datum plane through the lowerCT slice iscoming in around +0.726in in the y... Is this what you are getting?


I've recently been playing around creating surfaces from MRI data, but I've never seen a slice turned into a point cloud like this before. Are you just taking measurements, or are you ultimately going to create 3D models from it?


Jim
http://www.linkedin.com/in/shawengineering
 
Yep but for me although the global 3D co-ordinates are all +ve when I trace the contour onto a plane the y co-ords come up as -ve???


The ultimate aim is to reconstruct the3D image and probably simplify (alot!) then put the geometry into a FEA package.


Bwts
 
Bwts,


Now I am beginning to understand what you're having trouble with. Your initial post was missing quite a bit of information!


The "-y" values you see on the left-hand side under "paramters" (it's actually "-x" for me) is just the local (x,y) coordinates on that particualr sketch plane, and the directions are dependant on how SW orients the datum plane when it is selected for sketch. I have found this to bequite arbitrary.


For your task, is the "-" sign really messing you up that much? I mean, it's just the values that are important. When you exit the sketch those local coordinates don't matter.


Jim
http://www.linkedin.com/in/shawengineering
 
Bwts,


Also, what made you choose this method? How did you segment the image to create the point cloud?Have you investigated usinga medical image processing software, which can create the volume for you?


I foresee a lot of manual labor in trying to create a spline-outline for each slice, then creating surfaces from that... Just trying to help you acheive your overall goal with the least amount of labor/time.


Jim
http://www.linkedin.com/in/shawengineering
 
Jim,


The problem arises when I work with an otrthogonal plane say the YZ plane I get strange rotations around the Z axiz. Although the 3D Sketching is working out fine at the moment.


I choose the method mainly due to memory problems when working with high resolution CT images. This way I can down sample easily, cut and crop, threshold on the cheep with my own code. Also, some of the down sampling used in commercial software was not addequate for what I'm doing. I'm not interested in volume just the surfaces. The FE model uses shells and beams so no need for volume.


I also get alot more control over the surface generated in SW.





Bwts
 
Bwts,


Yes, it's when you try to sketch on a datum plane. SW seems to arbitrarily re-orient the sketch plane, and I do not know of a workaround. I'd recommend you stick with the 3DSketch method.


Great answer. I've been using some open source doc image processer, and it can segment and create an stl for me. However, thesegmentation algorithm isn't doing what I want it to, and as a result the STL's are not very accurate, so I'm a bit stumped with it right now...
smiley7.gif



Can you share with me a little more about your CT-Matlab-point cloud process? (And what exactly are you simulating with shells/beams?) Email me at [email protected] or PM me, if you don't want it on the forum. Good Luck with your projects otherwise!


Jim
http://www.linkedin.com/in/shawengineering
 
Jim


I'm modelling hearts valves. You can get segmentation programs that will smooth and denoise images to get better geometries, ScanIP springs to mind. But I have never been happy with them. Its not just the geometry that comes out clumsy but when I have used auo-meshing algorthms the meshes are just horrific.


CT > Matlab > Point cloud convertion is pretty straight forward. I convert the CT stack to Tifs then exctract the different planes. Matlab alows all sorts of resampling algorthms to be done or you can even write your own if you need certain areas to have particular quailities. To convert to point cloud I simply threshold the images to get rid of eth back ground and write an XYZ txt file with co-ords of the point over and under a certain value.


Bwts
 
Bwts,


Thanks for the scanIP lead, I'll check that out. My major setback is that the source image is not that clear. No post-processing is going to fix that...


No auto-mesh program is going to give you the mesh you want, especially advanced goemetry like body organs. I'd put the onus on the automesher, not the geometry in that case.


Neat stuff with matlab, I've never gotten a chance to use it. I'd be curious to see your final surface as a result of this method. Feel free to share it when you're done...


Jim
http://www.linkedin.com/in/shawengineering
 
Jim,


Yep I'll post a pic when its done. What are you scanning with the MRI? MRI images are notoriously blurred unless you have a high power scanner with no movement.


Matlab's M-code is alot like C/C++. Have just modified my code to give me the contours only, so just shaved a few days of the reconstruction
smiley4.gif



Bwts
 

Sponsor

Articles From 3DCAD World

Back
Top