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
541194ae
Commit
541194ae
authored
16 years ago
by
Jean-François Remacle
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
4c52e83a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Geo/Geo.cpp
+1
-1
1 addition, 1 deletion
Geo/Geo.cpp
Geo/gmshSurface.cpp
+2
-0
2 additions, 0 deletions
Geo/gmshSurface.cpp
Geo/gmshSurface.h
+4
-4
4 additions, 4 deletions
Geo/gmshSurface.h
with
7 additions
and
5 deletions
Geo/Geo.cpp
+
1
−
1
View file @
541194ae
...
...
@@ -126,7 +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_p
rojection
_surface
=
true
;
surf
->
is_p
arametric
_surface
=
true
;
return
pV
;
}
...
...
This diff is collapsed.
Click to expand it.
Geo/gmshSurface.cpp
+
2
−
0
View file @
541194ae
...
...
@@ -79,6 +79,8 @@ gmshSurface *gmshPolarSphere::NewPolarSphere(int iSphere, double x, double y, do
return
sph
;
}
gmshPolarSphere
::
gmshPolarSphere
(
double
x
,
double
y
,
double
z
,
double
_r
)
:
r
(
_r
),
o
(
x
,
y
,
z
)
{
}
SPoint3
gmshPolarSphere
::
point
(
double
parA
,
double
parB
)
const
{
//stereographic projection from the south pole, origin of the axis
...
...
This diff is collapsed.
Click to expand it.
Geo/gmshSurface.h
+
4
−
4
View file @
541194ae
...
...
@@ -21,13 +21,14 @@ class gmshSurface
protected:
static
std
::
map
<
int
,
gmshSurface
*>
allGmshSurfaces
;
public:
bool
is_projection_surface
;
//there are points define in this surface parameterization
bool
is_parametric_surface
;
virtual
~
gmshSurface
(){}
static
void
reset
()
{
std
::
map
<
int
,
gmshSurface
*>::
iterator
it
=
allGmshSurfaces
.
begin
();
for
(;
it
!=
allGmshSurfaces
.
end
();
++
it
){
if
(
!
it
->
second
->
is_p
rojection
_surface
)
if
(
!
it
->
second
->
is_p
arametric
_surface
)
delete
it
->
second
;
}
allGmshSurfaces
.
clear
();
...
...
@@ -86,8 +87,7 @@ 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
);
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