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
b79003ca
Commit
b79003ca
authored
17 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
904af370
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/FProjectionFace.cpp
+0
-48
0 additions, 48 deletions
Geo/FProjectionFace.cpp
Geo/FProjectionFace.h
+0
-31
0 additions, 31 deletions
Geo/FProjectionFace.h
with
0 additions
and
79 deletions
Geo/FProjectionFace.cpp
deleted
100644 → 0
+
0
−
48
View file @
904af370
#include
"FProjectionFace.h"
#if defined(HAVE_FOURIER_MODEL)
FProjectionFace
::
FProjectionFace
(
GModel
*
m
,
int
num
)
:
GFace
(
m
,
num
),
ps_
(
0
)
{}
FProjectionFace
::
FProjectionFace
(
GModel
*
m
,
int
num
,
FM
::
ProjectionSurface
*
ps
)
:
GFace
(
m
,
num
),
ps_
(
ps
)
{}
FProjectionFace
::~
FProjectionFace
()
{}
GPoint
FProjectionFace
::
point
(
double
par1
,
double
par2
)
const
{
SVector3
p
;
ps_
->
F
(
par1
,
par2
,
p
[
0
],
p
[
1
],
p
[
2
]);
return
GPoint
(
p
[
0
],
p
[
1
],
p
[
2
]);
}
SPoint2
FProjectionFace
::
parFromPoint
(
const
SPoint3
&
p
)
const
{
double
u
,
v
;
ps_
->
Inverse
(
p
[
0
],
p
[
1
],
p
[
2
],
u
,
v
);
return
SPoint2
(
u
,
v
);
}
Pair
<
SVector3
,
SVector3
>
FProjectionFace
::
firstDer
(
const
SPoint2
&
param
)
const
{
SVector3
du
;
SVector3
dv
;
ps_
->
Dfdu
(
param
.
x
(),
param
.
y
(),
du
[
0
],
du
[
1
],
du
[
2
]);
ps_
->
Dfdv
(
param
.
x
(),
param
.
y
(),
dv
[
0
],
dv
[
1
],
dv
[
2
]);
return
Pair
<
SVector3
,
SVector3
>
(
du
,
dv
);
}
SVector3
FProjectionFace
::
normal
(
const
SPoint2
&
param
)
const
{
double
x
,
y
,
z
;
ps_
->
GetUnitNormal
(
param
.
x
(),
param
.
y
(),
x
,
y
,
z
);
return
SVector3
(
x
,
y
,
z
);
}
Range
<
double
>
FProjectionFace
::
parBounds
(
int
i
)
const
{
return
Range
<
double
>
(
0
,
1
);
}
#endif
This diff is collapsed.
Click to expand it.
Geo/FProjectionFace.h
deleted
100644 → 0
+
0
−
31
View file @
904af370
#ifndef _F_PROJECTION_FACE_H_
#define _F_PROJECTION_FACE_H_
#include
"GModel.h"
#include
"Range.h"
#if defined(HAVE_FOURIER_MODEL)
#include
"FM_ProjectionSurface.h"
class
FProjectionFace
:
public
GFace
{
protected:
FM
::
ProjectionSurface
*
ps_
;
public:
FProjectionFace
(
GModel
*
m
,
int
num
);
FProjectionFace
(
GModel
*
m
,
int
num
,
FM
::
ProjectionSurface
*
ps
);
~
FProjectionFace
();
Range
<
double
>
parBounds
(
int
i
)
const
;
GPoint
point
(
double
par1
,
double
par2
)
const
;
SVector3
normal
(
const
SPoint2
&
param
)
const
;
Pair
<
SVector3
,
SVector3
>
firstDer
(
const
SPoint2
&
param
)
const
;
SPoint2
parFromPoint
(
const
SPoint3
&
)
const
;
virtual
int
containsParam
(
const
SPoint2
&
pt
)
const
{
throw
;
}
virtual
GEntity
::
GeomType
geomType
()
const
{
return
GEntity
::
ProjectionFace
;
}
ModelType
getNativeType
()
const
{
return
UnknownModel
;
}
void
*
getNativePtr
()
const
{
return
ps_
;
}
};
#endif
#endif
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