Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tp_quadtree
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
stefan.lazic
tp_quadtree
Commits
14e0fba9
Commit
14e0fba9
authored
4 years ago
by
stefan.lazic
Browse files
Options
Downloads
Patches
Plain Diff
fix symmetry
parent
372fe774
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
quadtree_tool
+0
-0
0 additions, 0 deletions
quadtree_tool
src/quadtree.c
+2
-2
2 additions, 2 deletions
src/quadtree.c
src/quadtree_tool.c
+1
-1
1 addition, 1 deletion
src/quadtree_tool.c
with
3 additions
and
3 deletions
quadtree_tool
+
0
−
0
View file @
14e0fba9
No preview for this file type
This diff is collapsed.
Click to expand it.
src/quadtree.c
+
2
−
2
View file @
14e0fba9
...
...
@@ -119,7 +119,7 @@ void swap(quadtree *ptr1, quadtree *ptr2){
error_code
quadtree_horizontal_symmmetry
(
quadtree
p_quadtree
){
error_code
err
=
0
;
if
(
p_quadtree
!=
NULL
){
if
(
p_quadtree
->
child
[
0
]
!=
NULL
){
for
(
int
i
=
0
;
i
<
4
;
i
++
){
run_func
(
quadtree_horizontal_symmmetry
(
p_quadtree
->
child
[
i
]));
}
...
...
@@ -131,7 +131,7 @@ error_code quadtree_horizontal_symmmetry(quadtree p_quadtree){
error_code
quadtree_vertical_symmmetry
(
quadtree
p_quadtree
){
error_code
err
=
0
;
if
(
p_quadtree
!=
NULL
){
if
(
p_quadtree
->
child
[
0
]
!=
NULL
){
for
(
int
i
=
0
;
i
<
4
;
i
++
){
run_func
(
quadtree_vertical_symmmetry
(
p_quadtree
->
child
[
i
]));
}
...
...
This diff is collapsed.
Click to expand it.
src/quadtree_tool.c
+
1
−
1
View file @
14e0fba9
...
...
@@ -71,7 +71,7 @@ int main(int argc, char *argv[]) {
run_func
(
matrix_to_quadtree
(
p_qtree1
,
&
p_pgm1
->
mat
,
0
,
n_max
,
p_pgm1
->
mat
.
m
/
2
,
p_pgm1
->
mat
.
m
/
2
,
p_pgm1
->
mat
.
n
/
2
));
print_applying
(
"horizontal symmetry qtree1"
);
//
run_func(quadtree_horizontal_symmmetry(p_qtree1)); // symmetry
run_func
(
quadtree_horizontal_symmmetry
(
p_qtree1
));
// symmetry
//print_applying("vertical symmetry qtree1");
//run_func(quadtree_vertical_symmmetry(p_qtree1)); // symmetry
...
...
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