Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PROG2900
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
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
Sara Savanovic Djordjevic
PROG2900
Commits
82434cba
Commit
82434cba
authored
1 year ago
by
Sara Savanovic Djordjevic
Browse files
Options
Downloads
Patches
Plain Diff
update: almost working grid
parent
59f733bd
No related branches found
Branches containing commit
No related tags found
1 merge request
!6
Clhp map
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
server/map/__pycache__/get_relation.cpython-311.pyc
+0
-0
0 additions, 0 deletions
server/map/__pycache__/get_relation.cpython-311.pyc
server/map/get_relation.py
+1
-1
1 addition, 1 deletion
server/map/get_relation.py
with
1 addition
and
1 deletion
server/map/__pycache__/get_relation.cpython-311.pyc
+
0
−
0
View file @
82434cba
No preview for this file type
This diff is collapsed.
Click to expand it.
server/map/get_relation.py
+
1
−
1
View file @
82434cba
...
...
@@ -206,7 +206,7 @@ def populate_new_edge(split_shape, remaining_shape, cell_size: float, divisor: f
# Insert new points with cell_size spacing while starting_point is within bounds
while
starting_point
<
sorted_corners
[
-
1
].
x
:
split_shape
.
insert
(
0
,
(
starting_point
,
divisor
))
# NB may have to add/subtract small offset of 0.00001
remaining_shape
.
insert
(
0
,
(
starting_point
,
divisor
))
# Prepend new point to shape
remaining_shape
.
insert
(
-
1
,
(
starting_point
,
divisor
))
# Prepend new point to shape
print
(
"
Hit point insertion
"
)
starting_point
+=
cell_size
...
...
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