Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nektar
Nektar
Commits
78e75ece
Commit
78e75ece
authored
Oct 11, 2016
by
Michael Turner
Browse files
dave comment
parent
c83d04c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
library/NekMeshUtils/CADSystem/CADCurve.cpp
View file @
78e75ece
...
...
@@ -104,28 +104,15 @@ NekDouble CADCurve::loct(Array<OneD, NekDouble> xyz)
Array
<
OneD
,
NekDouble
>
b
=
Bounds
();
gp_Pnt
loc
(
xyz
[
0
]
*
1000.0
,
xyz
[
1
]
*
1000.0
,
xyz
[
2
]
*
1000.0
);
/*GeomAPI_ProjectPointOnCurve projection(
loc,m_c,b[0],b[1]);
if (projection.NbPoints() == 0)
{
ASSERTL0(false,"failed");
}
else
{
t = projection.Parameter(1);
if(projection.Distance(1) > 1e-6)
{
cout << "large curve projection: " << projection.Distance(1) << endl;
}
}*/
ShapeAnalysis_Curve
sac
;
gp_Pnt
p
;
NekDouble
d
=
sac
.
Project
(
m_c
,
loc
,
1e-7
,
p
,
t
);
ASSERTL0
(
p
.
Distance
(
loc
)
<
1e-6
,
"large loct distance sac"
);
NekDouble
d
=
sac
.
Project
(
m_c
,
loc
,
1e-8
,
p
,
t
);
if
(
p
.
Distance
(
loc
)
>
1e-5
)
{
cerr
<<
"large loct distance"
<<
endl
;
}
return
t
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment