Skip to content

Commit

Permalink
large sphere warning instead of slice cap
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Harrington committed May 22, 2024
1 parent 9349cdb commit f30597c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/eu/mihosoft/vrl/v3d/Sphere.java
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public int getNumSlices() {
*/
public Sphere setNumSlices(int numSlices) {
if(numSlices>(NUM_SLICES*4))
numSlices=(NUM_SLICES*4);
System.err.println("Very large sphere! this may crash!");
this.numSlices = numSlices;return this;
}

Expand All @@ -272,7 +272,7 @@ public int getNumStacks() {
*/
public Sphere setNumStacks(int numStacks) {
if(numStacks>(NUM_STACKS*4))
numStacks=(NUM_STACKS*4);
System.err.println("Very large sphere! this may crash!");
this.numStacks = numStacks;return this;
}

Expand Down

0 comments on commit f30597c

Please sign in to comment.