Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Johannes Braun
glare
Commits
9a51510e
Commit
9a51510e
authored
Jun 19, 2017
by
unknown
Browse files
Added a kind of distance check for OLS
parent
023daad4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libraries/linespace/LineSpace.cpp
View file @
9a51510e
...
...
@@ -20,7 +20,7 @@ namespace glare
unsigned
goodSubdivision
(
size_t
polygon_count
,
glm
::
vec3
bounds_size
)
{
return
unsigned
(
5
*
glm
::
ceil
(
glm
::
log2
(
glm
::
max
(
size_t
(
2
),
polygon_count
))
*
glm
::
log
(
log2
((
glm
::
compMax
(
bounds_size
)
/
glm
::
compMin
(
bounds_size
))
+
2
*
glm
::
e
<
float
>
()))));
return
unsigned
(
4
*
glm
::
ceil
(
glm
::
log2
(
glm
::
max
(
size_t
(
2
),
polygon_count
))
*
glm
::
log
(
log2
((
glm
::
compMax
(
bounds_size
)
/
glm
::
compMin
(
bounds_size
))
+
2
*
glm
::
e
<
float
>
()))));
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment