Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
grafika elso hf
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Börcsök Barnabás
grafika elso hf
Commits
7bad3445
Commit
7bad3445
authored
5 years ago
by
bobarna
Browse files
Options
Downloads
Patches
Plain Diff
asd
parent
2cbbc37c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
sirius.cpp
+2
-1
2 additions, 1 deletion
sirius.cpp
with
2 additions
and
1 deletion
sirius.cpp
+
2
−
1
View file @
7bad3445
...
...
@@ -225,6 +225,7 @@ public:
while
(
!
remainingVertices
.
empty
())
{
//finding an ear
auto
currVertex
=
remainingVertices
.
begin
();
//check if current vertex is an ear
vec2
currPotDiag1
=
*
getNextVertex
(
currVertex
);
vec2
currPotDiag2
=
*
getPreviousVertex
(
currVertex
);
...
...
@@ -239,7 +240,7 @@ public:
break
;
//check if current potential diagonal is fully outside the polygon
vec2
infinity
(
2
5
0
,
2
5
0
);
vec2
infinity
(
2
0
0
,
2
0
0
);
vec2
middle
((
currPotDiag1
+
currPotDiag2
)
/
2
);
int
numberOfIntersections
=
0
;
for
(
auto
currEdgeStart
=
remainingVertices
.
begin
();
...
...
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