Cone generateMesh uniform mesh

Hi,
I have a conic frustrum in the form of an stl file. I am using generateMesh (as in the Matlab product toolbox which uses PDEs).
I have the following code: where ConeFrut48 is the stl file name.
model = createpde(1);
importGeometry(model,'ConeFrust48.stl');
generateMesh(model,'Hmax',1);
pdeplot3D(model)
And it gives the following mesh:
This is a mesh where most of the elements are equilateral triangles of side length 1mm, which is what I want. However there is a region on the right side of the frustrum where the triangular elements are no longer equilateral but are skewed. I need the entire body to be uniform equilateral. I am new to using this toolbox, is there a way to make it uniform everywhere? Perhaps there is a way to make this structured?
Thanks and kind regards,
Sabrina

1 Comment

Generally speaking, it is not possible to have absolutely uniform equailateral triangularization for an arbitrary geometry. Many mesh grid generation algorithma somehow generate as uniform as possible grids. That is what you have obtained from generateMesh.

Sign in to comment.

Answers (0)

Asked:

on 31 Aug 2022

Commented:

on 1 Sep 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!