Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
curves
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
Container Registry
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jason Chemin
curves
Commits
6768f74e
Commit
6768f74e
authored
5 years ago
by
JasonChmn
Browse files
Options
Downloads
Patches
Plain Diff
Edit few details in doc
parent
50858cc0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#4491
passed with warnings
5 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/curves/bezier_curve.h
+3
-3
3 additions, 3 deletions
include/curves/bezier_curve.h
tests/Main.cpp
+2
-5
2 additions, 5 deletions
tests/Main.cpp
with
5 additions
and
8 deletions
include/curves/bezier_curve.h
+
3
−
3
View file @
6768f74e
...
...
@@ -44,7 +44,7 @@ struct bezier_curve : public curve_abc<Time, Numeric, Dim, Safe, Point>
public:
/// \brief Constructor.
/// Given the first and last point of a control points set,
automatically
create the bezier curve.
/// Given the first and last point of a control points set, create the bezier curve.
/// \param PointsBegin : an iterator pointing to the first element of a control points container.
/// \param PointsEnd : an iterator pointing to the last element of a control points container.
///
...
...
@@ -69,7 +69,7 @@ struct bezier_curve : public curve_abc<Time, Numeric, Dim, Safe, Point>
}
/// \brief Constructor.
/// Given the first and last point of a control points set,
automatically
create the bezier curve.
/// Given the first and last point of a control points set, create the bezier curve.
/// \param PointsBegin : an iterator pointing to the first element of a control point container.
/// \param PointsEnd : an iterator pointing to the last element of a control point container.
/// \param T : upper bound of curve parameter which is between \f$[0;T]\f$ (default \f$[0;1]\f$).
...
...
@@ -97,7 +97,7 @@ struct bezier_curve : public curve_abc<Time, Numeric, Dim, Safe, Point>
/// \brief Constructor.
/// Given the first and last point of a control points set,
automatically
create the bezier curve.
/// Given the first and last point of a control points set, create the bezier curve.
/// \param PointsBegin : an iterator pointing to the first element of a control point container.
/// \param PointsEnd : an iterator pointing to the last element of a control point container.
/// \param T : upper bound of time which is between \f$[0;T]\f$ (default \f$[0;1]\f$).
...
...
This diff is collapsed.
Click to expand it.
tests/Main.cpp
+
2
−
5
View file @
6768f74e
...
...
@@ -188,9 +188,6 @@ void BezierCurveTest(bool& error)
params
.
push_back
(
d
);
bezier_curve_t
cf4
(
params
.
begin
(),
params
.
end
(),
2
);
res1
=
cf4
(
2
);
ComparePoints
(
d
,
res1
,
errMsg
+
"3(1) "
,
error
);
//testing bernstein polynomials
bezier_curve_t
cf5
(
params
.
begin
(),
params
.
end
(),
2.
);
std
::
string
errMsg2
(
"In test BezierCurveTest ; Bernstein polynomials do not evaluate as analytical evaluation"
);
...
...
@@ -233,12 +230,12 @@ void BezierCurveTest(bool& error)
if
(
cf
.
max
()
!=
1
)
{
error
=
true
;
std
::
cout
<<
"Evaluation of
exactCubic
error, MaxBound should be equal to 1
\n
"
;
std
::
cout
<<
"Evaluation of
bezier cf
error, MaxBound should be equal to 1
\n
"
;
}
if
(
cf
.
min
()
!=
0
)
{
error
=
true
;
std
::
cout
<<
"Evaluation of
exactCubic
error, MinBound should be equal to 1
\n
"
;
std
::
cout
<<
"Evaluation of
bezier cf
error, MinBound should be equal to 1
\n
"
;
}
}
...
...
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