Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
mlz
BornAgain
Commits
3fd35c62
Commit
3fd35c62
authored
1 year ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
rm unused Img3D::Geometry::Vertices::addStrip
parent
eb05f69a
No related branches found
Branches containing commit
No related tags found
1 merge request
!2257
rm unused fcts, detected by xunused
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Img3D/Model/Geometry.cpp
+0
-10
0 additions, 10 deletions
Img3D/Model/Geometry.cpp
Img3D/Model/Geometry.h
+0
-1
0 additions, 1 deletion
Img3D/Model/Geometry.h
with
0 additions
and
11 deletions
Img3D/Model/Geometry.cpp
+
0
−
10
View file @
3fd35c62
...
...
@@ -45,16 +45,6 @@ void Geometry::Vertices::addQuad(const Vertices& vs, unsigned i1, unsigned i2, u
addQuad
(
vs
.
at
(
i1
),
vs
.
at
(
i2
),
vs
.
at
(
i3
),
vs
.
at
(
i4
));
}
void
Geometry
::
Vertices
::
addStrip
(
const
Vertices
&
vs
,
const
Indices
&
is
)
{
ASSERT
(
is
.
size
()
>=
3
);
// at least one triangle
for
(
size_t
i
=
0
;
i
+
2
<
is
.
size
();
++
i
)
if
(
i
%
2
)
addTriangle
(
vs
.
at
(
is
.
at
(
i
)),
vs
.
at
(
is
.
at
(
1
+
i
)),
vs
.
at
(
is
.
at
(
2
+
i
)));
else
addTriangle
(
vs
.
at
(
is
.
at
(
i
)),
vs
.
at
(
is
.
at
(
2
+
i
)),
vs
.
at
(
is
.
at
(
1
+
i
)));
}
void
Geometry
::
Vertices
::
addFan
(
const
Vertices
&
vs
,
const
Indices
&
is
)
{
ASSERT
(
is
.
size
()
>=
3
);
// at least one triangle
...
...
This diff is collapsed.
Click to expand it.
Img3D/Model/Geometry.h
+
0
−
1
View file @
3fd35c62
...
...
@@ -54,7 +54,6 @@ public:
void
addQuad
(
const
F3
&
,
const
F3
&
,
const
F3
&
,
const
F3
&
);
// quad as 2 triangles
void
addQuad
(
const
Vertices
&
,
unsigned
,
unsigned
,
unsigned
,
unsigned
);
// quad by indices
void
addStrip
(
const
Vertices
&
,
const
Indices
&
);
// triangle strip
void
addFan
(
const
Vertices
&
,
const
Indices
&
);
// triangle fan
};
...
...
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