Skip to content

Commit a8f958f

Browse files
committed
consistent use of floats/doubles
1 parent e3cb05b commit a8f958f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/polyscope/structure.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ class Structure {
8888
void setEnabledAllOfType(bool newEnabled); // enable/disable all structures of this type
8989

9090
// Options
91-
Structure* setTransparency(double newVal); // also enables transparency if <1 and transparency is not enabled
92-
double getTransparency();
91+
Structure* setTransparency(float newVal); // also enables transparency if <1 and transparency is not enabled
92+
float getTransparency();
9393

9494
Structure* setCullWholeElements(bool newVal);
9595
bool getCullWholeElements();

src/structure.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ std::string Structure::uniquePrefix() { return typeName() + "#" + name + "#"; }
280280
void Structure::remove() { removeStructure(typeName(), name); }
281281

282282

283-
Structure* Structure::setTransparency(double newVal) {
283+
Structure* Structure::setTransparency(float newVal) {
284284
transparency = newVal;
285285

286286
if (newVal < 1. && options::transparencyMode == TransparencyMode::None) {
@@ -290,7 +290,7 @@ Structure* Structure::setTransparency(double newVal) {
290290

291291
return this;
292292
}
293-
double Structure::getTransparency() { return transparency.get(); }
293+
float Structure::getTransparency() { return transparency.get(); }
294294

295295
Structure* Structure::setCullWholeElements(bool newVal) {
296296
cullWholeElements = newVal;

0 commit comments

Comments
 (0)