ENH: car meshing - merge close points on surface, use closedTriSurface.

Wheels are baffle surface.
This commit is contained in:
graham
2011-06-23 16:05:01 +01:00
parent 1234c6bda7
commit b15e01f315
4 changed files with 24 additions and 20 deletions

View File

@ -4,11 +4,15 @@ cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
surfacePointMerge constant/triSurface/m_car01.obj \
1e-2 constant/triSurface/m_car01_merge.obj \
> log.surfacePointMerge 2>&1
# Orient so point to be meshed is inside surface
surfaceOrient \
constant/triSurface/m_car01.obj \
constant/triSurface/m_car01_merge.obj \
-inside -usePierceTest '(13 -200 149)' \
constant/triSurface/m_car01_orient.obj \
constant/triSurface/m_car01_merge_orient.obj \
> log.surfaceOrient.m_car01 2>&1
# Same for outside
@ -20,14 +24,14 @@ surfaceOrient \
# Surface has open edges. Create dummy features for now.
runApplication surfaceFeatureExtract \
constant/triSurface/m_car01_orient.obj \
m_car01 -minElem 10000000
constant/triSurface/m_car01_merge_orient.obj \
m_car01 -includedAngle 165 -writeObj
mv log.surfaceFeatureExtract log.surfaceFeatureExtract.m_car01
unset FOAM_SIGFPE
runApplication surfaceFeatureExtract \
constant/triSurface/domain_orient.stl \
domain -includedAngle 125
domain -includedAngle 125 -writeObj
mv log.surfaceFeatureExtract log.surfaceFeatureExtract.domain
# Generate aligned points (in constant/internalDelaunayVertices) and a