Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
constant-workspace-algorithms-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
mikadelor
constant-workspace-algorithms-c
Commits
8cde16f3
Commit
8cde16f3
authored
Dec 5, 2018
by
mika
Browse files
Options
Downloads
Patches
Plain Diff
some todos
parent
f01a46f2
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/delaunay.c
+1
-0
1 addition, 0 deletions
src/delaunay.c
src/dwyer.c
+1
-0
1 addition, 0 deletions
src/dwyer.c
src/main.c
+2
-3
2 additions, 3 deletions
src/main.c
src/voronoi.c
+2
-0
2 additions, 0 deletions
src/voronoi.c
with
6 additions
and
3 deletions
src/delaunay.c
+
1
−
0
View file @
8cde16f3
...
...
@@ -94,6 +94,7 @@ double det2(double a, double b, double c, double d) {
* https://de.wikipedia.org/wiki/Cramersche_Regel
* https://de.wikipedia.org/wiki/Determinante
*/
//TODO seperate radius from this function
circle
circleFrom3Points
(
vertex
v1
,
vertex
v2
,
vertex
v3
)
{
circle
c
;
double
ax
=
2
*
(
v1
.
x
-
v2
.
x
);
...
...
This diff is collapsed.
Click to expand it.
src/dwyer.c
+
1
−
0
View file @
8cde16f3
...
...
@@ -765,6 +765,7 @@ EDGE_PTR e;
}
}
//TODO replace other circle function with this?
struct
VEC2
circle_center
(
a
,
b
,
c
)
/* returns the center of the circle passing through A, B & C. */
struct
VEC2
a
,
b
,
c
;
...
...
This diff is collapsed.
Click to expand it.
src/main.c
+
2
−
3
View file @
8cde16f3
...
...
@@ -26,10 +26,9 @@ int main(int argc, char *argv[]) {
}
//vertex *points = malloc(numberOfPoints * sizeof(vertex));
vertex
points
[
numberOfPoints
];
vertex
*
points
=
malloc
(
numberOfPoints
*
sizeof
(
vertex
));
generatePoints
(
points
,
numberOfPoints
);
printf
(
"%lu
\n
"
,
sizeof
(
points
));
printf
(
"%lu
\n
"
,
numberOfPoints
*
sizeof
(
vertex
));
//drawPoints(points, numberOfPoints);
#ifdef OUTPUTFILE
...
...
This diff is collapsed.
Click to expand it.
src/voronoi.c
+
2
−
0
View file @
8cde16f3
...
...
@@ -121,6 +121,7 @@ void voronoiCws(vertex* S, int size) {
}
}
lastV
=
currentV
;
#ifdef DEL
if
(
i
<
j
&&
i
<
k
)
{
if
(
isTriangle
==
2
){
#ifdef OUTPUTFILE
...
...
@@ -128,6 +129,7 @@ void voronoiCws(vertex* S, int size) {
#endif
}
}
#endif
j
=
k
;
}
while
(
j
!=
j0
);
}
...
...
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