Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
ed2741c1
Commit
ed2741c1
authored
Jun 15, 2021
by
Raju Ningappa Mulawade
Browse files
[CHANGE
#457
] VoxelPerunit variable integer to float
parent
820d7704
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/modules/voxelizer/WMVoxelizer.cpp
src/modules/voxelizer/WMVoxelizer.cpp
+2
-2
src/modules/voxelizer/WMVoxelizer.h
src/modules/voxelizer/WMVoxelizer.h
+1
-1
No files found.
src/modules/voxelizer/WMVoxelizer.cpp
View file @
ed2741c1
...
...
@@ -92,7 +92,7 @@ void WMVoxelizer::properties()
{
m_antialiased
=
m_properties
->
addProperty
(
"Antialiasing"
,
"Enable/Disable antialiased drawing of voxels."
,
true
,
m_fullUpdate
);
m_voxelsPerUnit
=
m_properties
->
addProperty
(
"Voxels per Unit"
,
"Specified the number of voxels per unit in the coordinate system. This "
"is useful to increase the resolution of the grid"
,
1
,
m_fullUpdate
);
"is useful to increase the resolution of the grid"
,
1
.0
,
m_fullUpdate
);
// for selecting the parameterization method
m_paramAlgoSelections
=
boost
::
shared_ptr
<
WItemSelection
>
(
new
WItemSelection
()
);
m_paramAlgoSelections
->
addItem
(
"No Parameterization"
,
"Disable parameterization."
);
// NOTE: you can add XPM images here.
...
...
@@ -215,7 +215,7 @@ boost::shared_ptr< WGridRegular3D > WMVoxelizer::constructGrid( boost::shared_pt
bb
=
tracts
->
getBoundingBox
();
}
int32_
t
nbVoxelsPerUnit
=
m_voxelsPerUnit
->
get
(
true
);
floa
t
nbVoxelsPerUnit
=
m_voxelsPerUnit
->
get
(
true
);
// TODO(math): remove hardcoded meta grid here.
// the "+1" in the following three statements is because there may be some more voxels
...
...
src/modules/voxelizer/WMVoxelizer.h
View file @
ed2741c1
...
...
@@ -249,7 +249,7 @@ private:
/**
* The number of voxels per unit in the coordinate system
*/
WProp
Int
m_voxelsPerUnit
;
WProp
Double
m_voxelsPerUnit
;
/**
* The available parameterization algorithms.
...
...
Write
Preview
Markdown
is supported
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