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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
c58cc3ca
Commit
c58cc3ca
authored
16 years ago
by
Jean-François Remacle
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
323171be
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Geo/Geo.cpp
+1
-1
1 addition, 1 deletion
Geo/Geo.cpp
Geo/gmshSurface.h
+8
-3
8 additions, 3 deletions
Geo/gmshSurface.h
with
9 additions
and
4 deletions
Geo/Geo.cpp
+
1
−
1
View file @
c58cc3ca
...
...
@@ -126,6 +126,7 @@ Vertex *Create_Vertex(int Num, double u, double v, gmshSurface *surf, double lc)
pV
->
u
=
u
;
pV
->
geometry
=
surf
;
pV
->
pntOnGeometry
=
SPoint2
(
u
,
v
);
surf
->
is_projection_surface
=
true
;
return
pV
;
}
...
...
@@ -3069,7 +3070,6 @@ bool SplitCurve(int line_id, List_T *vertices_id, List_T *shapes)
DeleteShape
(
c
->
Typ
,
c
->
Num
);
List_Delete
(
new_list
);
List_Delete
(
rshapes
);
return
true
;
}
...
...
This diff is collapsed.
Click to expand it.
Geo/gmshSurface.h
+
8
−
3
View file @
c58cc3ca
...
...
@@ -21,12 +21,15 @@ class gmshSurface
protected:
static
std
::
map
<
int
,
gmshSurface
*>
allGmshSurfaces
;
public:
bool
is_projection_surface
;
virtual
~
gmshSurface
(){}
static
void
reset
()
{
std
::
map
<
int
,
gmshSurface
*>::
iterator
it
=
allGmshSurfaces
.
begin
();
for
(;
it
!=
allGmshSurfaces
.
end
();
++
it
)
delete
it
->
second
;
for
(;
it
!=
allGmshSurfaces
.
end
();
++
it
){
if
(
!
it
->
second
->
is_projection_surface
)
delete
it
->
second
;
}
allGmshSurfaces
.
clear
();
};
static
gmshSurface
*
getSurface
(
int
tag
);
...
...
@@ -78,11 +81,13 @@ public:
}
};
#include
"stdio.h"
class
gmshPolarSphere
:
public
gmshSurface
{
double
r
;
SPoint3
o
;
gmshPolarSphere
(
double
x
,
double
y
,
double
z
,
double
_r
)
:
r
(
_r
),
o
(
x
,
y
,
z
)
{}
gmshPolarSphere
(
double
x
,
double
y
,
double
z
,
double
_r
)
:
r
(
_r
),
o
(
x
,
y
,
z
)
{
}
public
:
static
gmshSurface
*
NewPolarSphere
(
int
_iSphere
,
double
_x
,
double
_y
,
double
_z
,
double
_r
);
virtual
Range
<
double
>
parBounds
(
int
i
)
const
...
...
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