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
bfdb8f5d
Commit
bfdb8f5d
authored
16 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
parFromPoint returns numeric_limit::max() if failed
parent
769f0fb2
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/GEdge.h
+1
-0
1 addition, 0 deletions
Geo/GEdge.h
Geo/OCCEdge.cpp
+2
-1
2 additions, 1 deletion
Geo/OCCEdge.cpp
with
3 additions
and
1 deletion
Geo/GEdge.h
+
1
−
0
View file @
bfdb8f5d
...
@@ -53,6 +53,7 @@ class GEdge : public GEntity {
...
@@ -53,6 +53,7 @@ class GEdge : public GEntity {
virtual
std
::
list
<
GFace
*>
faces
()
const
{
return
l_faces
;
}
virtual
std
::
list
<
GFace
*>
faces
()
const
{
return
l_faces
;
}
// get the parameter location for a point in space on the edge
// get the parameter location for a point in space on the edge
// (returns std::numeric_limits<double>::max() if failed)
virtual
double
parFromPoint
(
const
SPoint3
&
)
const
=
0
;
virtual
double
parFromPoint
(
const
SPoint3
&
)
const
=
0
;
// get the point for the given parameter location
// get the point for the given parameter location
...
...
This diff is collapsed.
Click to expand it.
Geo/OCCEdge.cpp
+
2
−
1
View file @
bfdb8f5d
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
// See the LICENSE.txt file for license information. Please report all
// See the LICENSE.txt file for license information. Please report all
// bugs and problems to <gmsh@geuz.org>.
// bugs and problems to <gmsh@geuz.org>.
#include
<limits>
#include
"GModel.h"
#include
"GModel.h"
#include
"Message.h"
#include
"Message.h"
#include
"OCCEdge.h"
#include
"OCCEdge.h"
...
@@ -130,7 +131,7 @@ SVector3 OCCEdge::firstDer(double par) const
...
@@ -130,7 +131,7 @@ SVector3 OCCEdge::firstDer(double par) const
double
OCCEdge
::
parFromPoint
(
const
SPoint3
&
pt
)
const
double
OCCEdge
::
parFromPoint
(
const
SPoint3
&
pt
)
const
{
{
Msg
::
Error
(
"parFromPoint not implemented for OCCEdge"
);
Msg
::
Error
(
"parFromPoint not implemented for OCCEdge"
);
return
0.
;
return
std
::
numeric_limits
<
double
>::
max
()
;
}
}
GEntity
::
GeomType
OCCEdge
::
geomType
()
const
GEntity
::
GeomType
OCCEdge
::
geomType
()
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