Rank: 355 based on 187 downloads (last 30 days) and 6 files submitted
Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Adam View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
12 Feb 2013 Screenshot Mesh voxelisation Voxelise a triangular-polygon mesh. Author: Adam A cad, mesh, voxelize, voxel, voxelise, data import 63 14
  • 4.88889
4.9 | 10 ratings
09 Jul 2012 Screenshot Converting a 3D logical array into an STL surface mesh Conversion of a voxelised object contained within a 3D logical array into an STL surface mesh. Author: Adam A stl, cad, data export, mesh, voxel, convert 30 2
  • 5.0
5.0 | 1 rating
06 Jun 2012 Screenshot STL to ACIS SAT conversion Convert an STL file into ACIS SAT, which can be more readily imported into various CAD packages. Author: Adam A sat, cad, acis, stl, convert, data import 44 11
  • 4.0
4.0 | 4 ratings
10 Feb 2012 Screenshot Plot a 3D array using patch Plotting a 3D array using a patch surface mesh Author: Adam A 3d, 3d volume, plot, patch, 3d plot 34 10
  • 5.0
5.0 | 5 ratings
01 Dec 2010 Screenshot Compute mesh normals Calculate the normal vectors for each facet of a triangular mesh. Author: Adam A mesh, normals, stl 8 0
Comments and Ratings by Adam View all
Updated File Comments Rating
08 Feb 2013 Mesh voxelisation Voxelise a triangular-polygon mesh. Author: Adam A

Hi Yun-Ho Jang,

Yes, the code can be used to get a binary mask at a specified z-depth by specifying the required z-depth as the input gridZ. This works as long as gridZ is not an integer value. (By integer I do not mean in terms of datatype (int16, int32, int64, etc), I just mean in terms of being a whole number.)

However, if gridZ is an integer value then the code presumes that it defines the number of voxels in the grid in the z direction. To work around this, you could voxelise at two z-depths defined in gridZ (as a two-element vector), then discard the slice you don't want to leave you with a single binary layer. Not an elegant way to do it unfortunately, but this wasn't an anticipated use-case for the code when it was designed.

Hope this helps,
Adam

29 Nov 2012 STL to ACIS SAT conversion Convert an STL file into ACIS SAT, which can be more readily imported into various CAD packages. Author: Adam A

Hi Alonso,
The function tells you the path to the output .sat file, displaying it in the command window. Have you tried looking in that location?
Adam

16 Oct 2012 Mesh voxelisation Voxelise a triangular-polygon mesh. Author: Adam A

Hi Eff,
This code is designed for triangular-polygon meshes only, but your example mesh consists of quadrilateral faces.
Hope this helps,
Adam

09 Jul 2012 Mesh voxelisation Voxelise a triangular-polygon mesh. Author: Adam A

I suspect the best way will be to rotate the STL before voxelisation, like you suggest. If you try to do it post-voxelisation by rotating the 3D grid then you'll need to do a lot of interpolating, which will be slow and could introduce errors or artifacts. As for parallel processing - I don't see any reason why it shouldn't work, but I haven't looked into it.

05 Jul 2012 fdep: a pedestrian function dependencies finder FDEP dissects ML files and iteratively looks for all user defined functions used during runtime Author: us

Comments and Ratings on Adam's Files View all
Updated File Comment by Comments Rating
21 Jun 2013 Plot a 3D array using patch Plotting a 3D array using a patch surface mesh Author: Adam A Hassan

Great work Adam.
However, I get this error whenever I run your code on my data:

??? Undefined function or method 'PATCH_3Darray' for input arguments of type 'double'.

Any idea of why I am getting this error and what should I do to fix it?

21 Jun 2013 Mesh voxelisation Voxelise a triangular-polygon mesh. Author: Adam A Anusha

Nay I know how can I create the voxelisation using 3D points(x,y,z) of on the surface only. The 3D points should be the vertices. But how can I get the normals. Hope to get some help

08 Feb 2013 Mesh voxelisation Voxelise a triangular-polygon mesh. Author: Adam A Jang, Yun-Ho

Hello Adam,

Thanks a lot. I can get a large size binary mask based on your comments.

08 Feb 2013 Mesh voxelisation Voxelise a triangular-polygon mesh. Author: Adam A A, Adam

Hi Yun-Ho Jang,

Yes, the code can be used to get a binary mask at a specified z-depth by specifying the required z-depth as the input gridZ. This works as long as gridZ is not an integer value. (By integer I do not mean in terms of datatype (int16, int32, int64, etc), I just mean in terms of being a whole number.)

However, if gridZ is an integer value then the code presumes that it defines the number of voxels in the grid in the z direction. To work around this, you could voxelise at two z-depths defined in gridZ (as a two-element vector), then discard the slice you don't want to leave you with a single binary layer. Not an elegant way to do it unfortunately, but this wasn't an anticipated use-case for the code when it was designed.

Hope this helps,
Adam

07 Feb 2013 Mesh voxelisation Voxelise a triangular-polygon mesh. Author: Adam A Jang, Yun-Ho

Hello Adam,

Your code is great, but when I tried to voxelize with a bit large number of grids, (eg. 1000x1000x100), it generated out of memory error. Is there any way to get a binary mask at specific z-depth?

Thank you in advance.

Top Tags Applied by Adam
stl, 3d, cad, mesh, convert
Files Tagged by Adam View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
12 Feb 2013 Screenshot Mesh voxelisation Voxelise a triangular-polygon mesh. Author: Adam A cad, mesh, voxelize, voxel, voxelise, data import 63 14
  • 4.88889
4.9 | 10 ratings
09 Jul 2012 Screenshot Converting a 3D logical array into an STL surface mesh Conversion of a voxelised object contained within a 3D logical array into an STL surface mesh. Author: Adam A stl, cad, data export, mesh, voxel, convert 30 2
  • 5.0
5.0 | 1 rating
06 Jun 2012 Screenshot STL to ACIS SAT conversion Convert an STL file into ACIS SAT, which can be more readily imported into various CAD packages. Author: Adam A sat, cad, acis, stl, convert, data import 44 11
  • 4.0
4.0 | 4 ratings
10 Feb 2012 Screenshot Plot a 3D array using patch Plotting a 3D array using a patch surface mesh Author: Adam A 3d, 3d volume, plot, patch, 3d plot 34 10
  • 5.0
5.0 | 5 ratings
01 Dec 2010 Screenshot Compute mesh normals Calculate the normal vectors for each facet of a triangular mesh. Author: Adam A mesh, normals, stl 8 0

Contact us