Community Profile

Adam A


61 total contributions since 2009

Contact

Contributions in
View by

Submitted


Mesh voxelisation
Voxelise a triangular-polygon mesh.

4 years ago | 85 downloads |

Thumbnail

Responded


Re: How to get the volume of a 3D concave shape?
Have a look at the following thread: http://www.mathworks.co.uk/matlabcentral/newsreader/view_thread/289429#772542 Hope this he...

4 years ago | 2322 views

Responded


Re: 3D points representing cubes to 3D surface?
If A is your Nx3 matrix, then the following code should plot it: B = zeros(max(A,[],1)); for loopR = 1:size(A,1) end PATCH_3Dar...

4 years ago | 23826 views

Responded


Re: Wire Frame in 3D plot
You could try plotting it using the patch command, and then set the 'FaceColor' to 'none'. Adam

4 years ago | 3474 views

Submitted


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.

4 years ago | 34 downloads |

Thumbnail

Responded


Re: Best way to visualize surface (described by points) over volume
One option is to display your volume in 3D using the function below, and then superimpose the points from your surface. It depe...

4 years ago | 1141 views

Submitted


STL to ACIS SAT conversion
Convert an STL file into ACIS SAT, which can be more readily imported into various CAD packages.

4 years ago | 20 downloads |

Thumbnail

Responded


Re: Left & Right yaxislocations with imagesc
Also, although the code above doesn't work with Matlab's subplot command, you can work around that by positioning the axes manua...

4 years ago | 2221 views

Responded


Re: Left & Right yaxislocations with imagesc
A very old post, but I've been looking for an answer to the same problem. Here's some code that can be used as a workaround: f...

4 years ago | 2221 views

Submitted


Plot a 3D array using patch
Plotting a 3D array using a patch surface mesh

5 years ago | 24 downloads |

Thumbnail

Responded


Re: 3d mesh plot
You might find this function useful: http://www.mathworks.co.uk/matlabcentral/fileexchange/28497-plot-a-3d-array-using-patch T...

5 years ago | 2033 views

Responded


Re: Insdie or outside of a volume?
That sounds like you're trying to voxelize the mesh. If so, this function might be useful to you: http://www.mathworks.co.uk/m...

5 years ago | 5503 views

Responded


Re: export matlab geometry to solidworks
You might also be able to import the data by first converting an STL mesh to ACIS SAT. The object should then import into Solid...

5 years ago | 8589 views

Responded


Re: How to calculate two irregular 3D shapes intersected volume?
Whether the mesh is open or closed does not depend on the grid, only on the mesh itself. It shouldn't be a problem if the mesh ...

6 years ago | 4536 views

Responded


Re: How to calculate two irregular 3D shapes intersected volume?
The optimisation moved some code outside the inner for-loop, which reduces the number of calculations required. The improvement...

6 years ago | 4536 views

Responded


Re: How to calculate two irregular 3D shapes intersected volume?
I've found a way to optimise the voxelisation code which should reduce the run-time by up to 80%. I've uploaded the new version...

6 years ago | 4536 views

Responded


Re: How to calculate two irregular 3D shapes intersected volume?
A torus shape is not a problem as long as it is watertight, but have you actually checked that it is? Eg. If you export it as a...

6 years ago | 4536 views

Responded


Re: How to calculate two irregular 3D shapes intersected volume?
Also, are your original meshes properly closed/watertight? Have you imaged them, or checked them for mesh errors?

6 years ago | 4536 views

Responded


Re: How to calculate two irregular 3D shapes intersected volume?
Have you tried imaging the results to see why they are different?

6 years ago | 4536 views

Responded


Re: How to calculate two irregular 3D shapes intersected volume?
I should clarify that the 'x' or 'y' directions will run faster because of the geometry of your grid, which is [201,201,31]. Th...

6 years ago | 4536 views

Responded


Re: How to calculate two irregular 3D shapes intersected volume?
Are you using the most recent version of the voxelisation code? If you really need to speed things up, limit the voxelisation's...

6 years ago | 4536 views

Responded


Re: How to calculate two irregular 3D shapes intersected volume?
Some questions that might be a good place to start: - Have you used profile viewer to see what parts of your code take the most...

6 years ago | 4536 views

Responded


Re: Creating a 3D matrix from three 1D vectors
The projection probably looks distorted because you are not defining the x and y axes when you call imagesc. Ie. Instead of: ...

6 years ago | 16616 views

Responded


Re: interpn: Unexpected behaviour in R2010a
Hi Think blue, count two. Thanks for the suggestion - Yes, rearranging x and y so that they are in increasing order does seem t...

6 years ago | 1703 views

Posted


interpn: Unexpected behaviour in R2010a
Hi, I've come across some unexpected behaviour using interpn in version R2010a. It looks like a bug to me, but I thought I'd c...

6 years ago | 1703 views

Responded


Re: Creating a 3D matrix from three 1D vectors
No worries, glad it's working now! Adam

6 years ago | 16616 views

Responded


Re: Creating a 3D matrix from three 1D vectors
Hi Perseus, I found 3 possible reasons why you got an unexpected result. First was a bug in the voxelisation code. I've fixed...

6 years ago | 16616 views

Responded


Re: Creating a 3D matrix from three 1D vectors
Hi Perseus, If you can upload an example stl file somewhere then I might be able to have a look at your problem. You would als...

6 years ago | 16616 views

Submitted


Compute mesh normals
Calculate the normal vectors for each facet of a triangular mesh.

6 years ago | 5 downloads |

Thumbnail

Responded


Re: surface of a volume (triangulated)
Hi Gino The reason your result looked odd is that the rays used to trace your mesh exactly coincide with the vertices and edges...

6 years ago | 1283 views

Load more