Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
abf76c82
Commit
abf76c82
authored
18 years ago
by
Jean-François Remacle
Browse files
Options
Downloads
Patches
Plain Diff
more opencc stuff (more surface and curve types are recognized by gmsh)
parent
89e9ef06
No related branches found
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
Geo/GEntity.h
+2
-0
2 additions, 0 deletions
Geo/GEntity.h
Geo/OCCFace.cpp
+9
-4
9 additions, 4 deletions
Geo/OCCFace.cpp
Geo/OCCVertex.cpp
+7
-7
7 additions, 7 deletions
Geo/OCCVertex.cpp
Mesh/meshGFace.cpp
+2
-2
2 additions, 2 deletions
Mesh/meshGFace.cpp
Mesh/meshGRegion.cpp
+1
-1
1 addition, 1 deletion
Mesh/meshGRegion.cpp
with
21 additions
and
14 deletions
Geo/GEntity.h
+
2
−
0
View file @
abf76c82
...
...
@@ -80,6 +80,7 @@ class GEntity {
Torus
,
RuledSurface
,
ParametricSurface
,
BSplineSurface
,
DiscreteSurface
,
Volume
,
DiscreteVolume
...
...
@@ -106,6 +107,7 @@ class GEntity {
"Torus"
,
"Ruled surface"
,
"Parametric surface"
,
"BSpline surface"
,
"Discrete surface"
,
"Volume"
,
"Discrete volume"
...
...
This diff is collapsed.
Click to expand it.
Geo/OCCFace.cpp
+
9
−
4
View file @
abf76c82
// $Id: OCCFace.cpp,v 1.1
1
2006-11-2
2
1
3:57:25
remacle Exp $
// $Id: OCCFace.cpp,v 1.1
2
2006-11-2
3
1
6:23:13
remacle Exp $
//
// Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
//
...
...
@@ -30,6 +30,8 @@
#if defined(HAVE_OCC)
#include
"Geom_CylindricalSurface.hxx"
#include
"Geom_ConicalSurface.hxx"
#include
"Geom_BSplineSurface.hxx"
#include
"Geom_SphericalSurface.hxx"
#include
"Geom_Plane.hxx"
#include
"gp_Pln.hxx"
...
...
@@ -176,8 +178,10 @@ GEntity::GeomType OCCFace::geomType() const
return
Cylinder
;
else
if
(
occface
->
DynamicType
()
==
STANDARD_TYPE
(
Geom_ConicalSurface
))
return
Cone
;
// else if (occface->DynamicType() == STANDARD_TYPE(Geom_ConicalSurface))
// return Cone;
else
if
(
occface
->
DynamicType
()
==
STANDARD_TYPE
(
Geom_SphericalSurface
))
return
Sphere
;
else
if
(
occface
->
DynamicType
()
==
STANDARD_TYPE
(
Geom_BSplineSurface
))
return
BSplineSurface
;
return
Unknown
;
}
...
...
@@ -190,7 +194,8 @@ double OCCFace::curvature (const SPoint2 ¶m) const
if
(
!
prop
.
IsCurvatureDefined
())
{
return
GFace
::
curvature
(
param
);
Msg
(
GERROR
,
"Curvature not defined for face %d"
,
tag
());
return
-
1
;
}
return
std
::
max
(
fabs
(
prop
.
MinCurvature
()),
fabs
(
prop
.
MaxCurvature
()));
}
...
...
This diff is collapsed.
Click to expand it.
Geo/OCCVertex.cpp
+
7
−
7
View file @
abf76c82
// $Id: OCCVertex.cpp,v 1.
6
2006-11-2
2
1
3:57:25
remacle Exp $
// $Id: OCCVertex.cpp,v 1.
7
2006-11-2
3
1
6:23:13
remacle Exp $
//
// Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
//
...
...
@@ -30,12 +30,12 @@ double max_surf_curvature ( const GVertex *gv, double x, double y, double z , co
{
std
::
list
<
GFace
*>
faces
=
_myGEdge
->
faces
();
std
::
list
<
GFace
*>::
iterator
it
=
faces
.
begin
();
double
curv
=
0
;
double
curv
=
1.e-22
;
while
(
it
!=
faces
.
end
())
{
SPoint2
par
=
gv
->
reparamOnFace
((
*
it
),
1
);
double
cc
=
(
*
it
)
->
curvature
(
par
);
if
(
cc
<
1.e2
)
curv
=
std
::
max
(
curv
,
cc
);
if
(
cc
>
0
)
curv
=
std
::
max
(
curv
,
cc
);
++
it
;
}
return
curv
;
...
...
@@ -99,10 +99,10 @@ SPoint2 OCCVertex::reparamOnFace ( GFace *gf , int dir) const
double
OCCVertex
::
prescribedMeshSizeAtVertex
()
const
{
SBoundingBox3d
b
=
model
()
->
bounds
();
double
lc
=
0.1
*
norm
(
SVector3
(
b
.
max
()
,
b
.
min
()
)
)
*
CTX
.
mesh
.
lc_factor
;
//
double lc_min = 0.004 * norm(SVector3 ( b.max() , b.min() ) ) * CTX.mesh.lc_factor;
//
double maxc = max_curvature_of_surfaces();
//
if (maxc !=0)
//
lc = std::max(lc_min,std::min (lc,6.28/(CTX.mesh.min_circ_points*maxc)));
double
lc_min
=
0.004
*
norm
(
SVector3
(
b
.
max
()
,
b
.
min
()
)
)
*
CTX
.
mesh
.
lc_factor
;
double
maxc
=
max_curvature_of_surfaces
();
if
(
maxc
!=
0
)
lc
=
std
::
max
(
lc_min
,
std
::
min
(
lc
,
6.28
/
(
CTX
.
mesh
.
min_circ_points
*
maxc
)));
return
lc
;
}
...
...
This diff is collapsed.
Click to expand it.
Mesh/meshGFace.cpp
+
2
−
2
View file @
abf76c82
// $Id: meshGFace.cpp,v 1.2
2
2006-11-2
2
1
3:57:25
remacle Exp $
// $Id: meshGFace.cpp,v 1.2
3
2006-11-2
3
1
6:23:13
remacle Exp $
//
// Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle
//
...
...
@@ -1536,7 +1536,7 @@ void meshGFace :: operator() (GFace *gf)
if
(
gf
->
geomType
()
==
GEntity
::
DiscreteSurface
)
return
;
// Send a messsage to the GMSH environment
Msg
(
STATUS2
,
"Meshing surface %d"
,
gf
->
tag
());
Msg
(
STATUS2
,
"Meshing surface %d
(%s)
"
,
gf
->
tag
()
,
gf
->
getTypeString
().
c_str
()
);
// TEST TEST
// if (gf->surfPeriodic(2)) return;
...
...
This diff is collapsed.
Click to expand it.
Mesh/meshGRegion.cpp
+
1
−
1
View file @
abf76c82
...
...
@@ -442,7 +442,7 @@ void meshGRegion :: operator() (GRegion *gr)
// Send a messsage to the GMSH environment
Msg
(
STATUS2
,
"Meshing volume %d"
,
gr
->
tag
());
if
(
CTX
.
mesh
.
algo3d
==
DELAUNAY_TETGEN
)
if
(
CTX
.
mesh
.
algo3d
==
DELAUNAY_TETGEN
||
CTX
.
mesh
.
algo3d
==
DELAUNAY_ISO
)
{
#if !defined(HAVE_TETGEN)
Msg
(
GERROR
,
"Tetgen is not compiled in this version of Gmsh"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment