Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
unionized-triangles
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
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
Shlomi Steinberg
unionized-triangles
Commits
99650f50
Unverified
Commit
99650f50
authored
4 months ago
by
blaicheo
Committed by
GitHub
4 months ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #2 from blacheo/alt_triangulation
init new union
parents
807ba242
69cce454
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/union.cpp
+13
-0
13 additions, 0 deletions
src/union.cpp
with
13 additions
and
0 deletions
src/union.cpp
+
13
−
0
View file @
99650f50
...
...
@@ -5,6 +5,19 @@
#include
<intersections.h>
#include
<triangulation.h>
std
::
vector
<
Triangle
>
unionize2
(
const
Triangle
&
t1
,
const
Triangle
&
t2
)
{
// if neighbours, do nothing
if
(
t1
.
neighbours
(
t2
))
{
return
std
::
vector
{
t1
,
t2
};
}
// look for points in triangles
// if 0 points in triangles
// check if triangles intersect
// if 1 point in triangle
//
}
std
::
vector
<
Triangle
>
unionize
(
const
Triangle
&
t1
,
const
Triangle
&
t2
)
{
// if neighbours, do nothing
...
...
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