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
c99be7c3
Commit
c99be7c3
authored
Aug 3, 2007
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
projection faces are persistent and should never be deleted
parent
d5c13dcd
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Fltk/GUI_Projection.cpp
+12
-13
12 additions, 13 deletions
Fltk/GUI_Projection.cpp
Geo/GModel.cpp
+6
-3
6 additions, 3 deletions
Geo/GModel.cpp
contrib/FourierModel/Makefile
+36
-0
36 additions, 0 deletions
contrib/FourierModel/Makefile
with
54 additions
and
16 deletions
Fltk/GUI_Projection.cpp
+
12
−
13
View file @
c99be7c3
...
...
@@ -265,6 +265,13 @@ void browse_cb(Fl_Widget *w, void *data)
projection
*
p
=
e
->
getCurrentProjection
();
if
(
p
){
if
(
!
GMODEL
->
faceByTag
(
p
->
face
->
tag
())){
// the projection face is not in the model: add it and reset all
// selections
GMODEL
->
add
(
p
->
face
);
e
->
getEntities
().
clear
();
e
->
getElements
().
clear
();
}
p
->
face
->
setVisibility
(
true
);
p
->
group
->
show
();
}
...
...
@@ -577,25 +584,17 @@ void mesh_parameterize_cb(Fl_Widget* w, void* data)
// display geometry surfaces
opt_geometry_surfaces
(
0
,
GMSH_SET
|
GMSH_GUI
,
1
);
// create one instance of each available projection surface
// create the (static) editor
static
projectionEditor
*
editor
=
0
;
if
(
!
editor
){
std
::
vector
<
FProjectionFace
*>
faces
;
if
(
faces
.
empty
()){
int
tag
=
GMODEL
->
numFace
();
faces
.
push_back
(
new
FProjectionFace
(
GMODEL
,
++
tag
,
new
CylindricalProjectionSurface
(
tag
)));
faces
.
push_back
(
new
FProjectionFace
(
GMODEL
,
++
tag
,
new
RevolvedParabolaProjectionSurface
(
tag
)));
editor
=
new
projectionEditor
(
faces
);
}
// make each projection surface invisible and
for
(
unsigned
int
i
=
0
;
i
<
faces
.
size
();
i
++
){
faces
[
i
]
->
setVisibility
(
false
);
GMODEL
->
add
(
faces
[
i
]);
}
// launch editor
static
projectionEditor
*
editor
=
0
;
if
(
!
editor
)
editor
=
new
projectionEditor
(
faces
);
editor
->
show
();
}
...
...
This diff is collapsed.
Click to expand it.
Geo/GModel.cpp
+
6
−
3
View file @
c99be7c3
// $Id: GModel.cpp,v 1.4
2
2007-0
5-23 15:35:33
geuzaine Exp $
// $Id: GModel.cpp,v 1.4
3
2007-0
8-03 14:57:09
geuzaine Exp $
//
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
//
...
...
@@ -30,8 +30,11 @@ void GModel::destroy()
for
(
riter
it
=
firstRegion
();
it
!=
lastRegion
();
++
it
)
delete
*
it
;
regions
.
clear
();
for
(
fiter
it
=
firstFace
();
it
!=
lastFace
();
++
it
)
for
(
fiter
it
=
firstFace
();
it
!=
lastFace
();
++
it
){
// projection faces are persistent and should never be deleted
if
((
*
it
)
->
geomType
()
!=
GEntity
::
ProjectionFace
)
delete
*
it
;
}
faces
.
clear
();
for
(
eiter
it
=
firstEdge
();
it
!=
lastEdge
();
++
it
)
delete
*
it
;
...
...
This diff is collapsed.
Click to expand it.
contrib/FourierModel/Makefile
+
36
−
0
View file @
c99be7c3
...
...
@@ -49,3 +49,39 @@ depend:
rm
-f
Makefile.new
# DO NOT DELETE THIS LINE
ProjectionSurface.o
:
ProjectionSurface.cpp ProjectionSurface.h
CylindricalProjectionSurface.o
:
CylindricalProjectionSurface.cpp
\
CylindricalProjectionSurface.h ProjectionSurface.h
RevolvedParabolaProjectionSurface.o
:
\
RevolvedParabolaProjectionSurface.cpp
\
RevolvedParabolaProjectionSurface.h Utils.h ProjectionSurface.h
Patch.o
:
Patch.cpp Patch.h ProjectionSurface.h
FPatch.o
:
FPatch.cpp Message.h FPatch.h Patch.h ProjectionSurface.h
\
PartitionOfUnity.h
ContinuationPatch.o
:
ContinuationPatch.cpp Message.h ContinuationPatch.h
\
Patch.h ProjectionSurface.h FM_Info.h PartitionOfUnity.h
\
Interpolator1D.h
ExactPatch.o
:
ExactPatch.cpp Message.h ExactPatch.h Patch.h
\
ProjectionSurface.h FM_Info.h
Curve.o
:
Curve.cpp Curve.h
FCurve.o
:
FCurve.cpp FCurve.h Curve.h Patch.h ProjectionSurface.h
IntersectionCurve.o
:
IntersectionCurve.cpp Message.h IntersectionCurve.h
\
Curve.h Patch.h ProjectionSurface.h FM_Info.h
BlendedPatch.o
:
BlendedPatch.cpp BlendedPatch.h Message.h Patch.h
\
ProjectionSurface.h BlendOperator.h FM_Info.h PartitionOfUnity.h
BlendOperator.o
:
BlendOperator.cpp BlendOperator.h FM_Info.h Patch.h
\
ProjectionSurface.h
FM_Edge.o
:
FM_Edge.cpp FM_Edge.h Curve.h FM_Vertex.h Message.h
FM_Face.o
:
FM_Face.cpp FM_Face.h Patch.h ProjectionSurface.h FM_Edge.h
\
Curve.h FM_Vertex.h Message.h
FM_Info.o
:
FM_Info.cpp FM_Info.h
FM_Reader.o
:
FM_Reader.cpp Message.h FM_Reader.h Curve.h
\
IntersectionCurve.h Patch.h ProjectionSurface.h FM_Info.h ExactPatch.h
\
ContinuationPatch.h PartitionOfUnity.h Interpolator1D.h
\
CylindricalProjectionSurface.h RevolvedParabolaProjectionSurface.h
\
Utils.h FM_Face.h FM_Edge.h FM_Vertex.h BlendOperator.h BlendedPatch.h
FM_Vertex.o
:
FM_Vertex.cpp
Message.o
:
Message.cpp Message.h
Utils.o
:
Utils.cpp Utils.h Message.h
PartitionOfUnity.o
:
PartitionOfUnity.cpp PartitionOfUnity.h
Interpolator1D.o
:
Interpolator1D.cpp Interpolator1D.h Message.h
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