Skip to content
Snippets Groups Projects
Commit a1d6b5d8 authored by Boman Romain's avatar Boman Romain
Browse files

add other meshes

parent 78113037
No related branches found
No related tags found
No related merge requests found
Showing with 99 additions and 4 deletions
*_lfs.* filter=lfs diff=lfs merge=lfs -text
# dolicorhynchops 10k
Dolicorhynchops osborni FHSM VP404
Very coarse model generated with meshlab from the finest (1M faces) model of Valentin.
![screenshot](screenshot.png)
# dolicorhynchops 1M
Dolicorhynchops osborni FHSM VP404
Finest model (1M faces)
![screenshot](screenshot.png)
\ No newline at end of file
File added
models/dolicorhynchops/1M/screenshot.png

94.7 KiB

# dolicorhynchops 238k
Dolicorhynchops osborni FHSM VP404
"Coarse" model generated by V Gaudichon with Geomagic.
![screenshot](screenshot.png)
\ No newline at end of file
File added
models/dolicorhynchops/238k/screenshot.png

94.7 KiB

# dolicorhynchops 65k
Dolicorhynchops osborni FHSM VP404
Intermediate model (238k) reparameterised with gmsh
![screenshot](screenshot.png)
\ No newline at end of file
File added
// -----------------------------------------------------------------------------
//
// Gmsh GEO tutorial 13
//
// Remeshing an STL file without an underlying CAD model
//
// -----------------------------------------------------------------------------
// Let's merge an STL mesh that we would like to remesh.
//Merge "t13_data.stl";
//Merge "../models/Dolicorhynchops_coarse.ply";
Merge "Dolicorhynchops_grossier_valentin.stl";
// We first classify ("color") the surfaces by splitting the original surface
// along sharp geometrical features. This will create new discrete surfaces,
// curves and points.
DefineConstant[
// Angle between two triangles above which an edge is considered as sharp
angle = {120, Min 20, Max 120, Step 1,
Name "Parameters/Angle for surface detection"},
// For complex geometries, patches can be too complex, too elongated or too
// large to be parametrized; setting the following option will force the
// creation of patches that are amenable to reparametrization:
forceParametrizablePatches = {1, Choices{0,1},
Name "Parameters/Create surfaces guaranteed to be parametrizable"},
// For open surfaces include the boundary edges in the classification process:
//includeBoundary = 1,
includeBoundary = 0,
// Force curves to be split on given angle:
curveAngle = 180
];
ClassifySurfaces{angle * Pi/180, includeBoundary, forceParametrizablePatches,
curveAngle * Pi / 180};
// Create a geometry for all the discrete curves and surfaces in the mesh, by
// computing a parametrization for each one
CreateGeometry;
// In batch mode the two steps above can be performed with `gmsh t13.stl
// -reparam 40', which will save `t13.msh' containing the parametrizations, and
// which can thus subsequently be remeshed.
// Create a volume as usual
Surface Loop(1) = Surface{:};
Volume(1) = {1};
// We specify element sizes imposed by a size field, just because we can :-)
funny = DefineNumber[0, Choices{0,1},
Name "Parameters/Apply funny mesh size field?" ];
Field[1] = MathEval;
If(funny)
Field[1].F = "2*Sin((x+y)/5) + 3";
Else
Field[1].F = "2";
EndIf
Background Field = 1;
models/dolicorhynchops/65k/screenshot.png

94.7 KiB

......@@ -4,10 +4,10 @@
def parms(d={}):
p = {}
path = 'dolicorhynchops/10k'
p['mandible'] = f'{path}/mandible.ply' # mandible mesh (.ply/.geo/.msh)
p['teeth'] = f'{path}/teeth.off' # one or several vertices (.ply/.off)
p['LTMJ'] = f'{path}/LTMJ.off' # left temporomandibular joint - 1 vertex (.ply/.off)
p['RTMJ'] = f'{path}/RTMJ.off' # right temporomandibular joint - 1 vertex (.ply/.off)
p['mandible'] = f'{path}/mandible.ply'
p['teeth'] = f'{path}/teeth.off'
p['LTMJ'] = f'{path}/LTMJ.off'
p['RTMJ'] = f'{path}/RTMJ.off'
p['muscles'] = [
{ 'file': f'{path}/Lmuscle.ply', 'force': 100., 'focalpt':f'{path}/LmuscleF.off'},
{ 'file': f'{path}/Rmuscle.off', 'force': 100., 'focalpt':f'{path}/RmuscleF.off'}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment