mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-12 23:08:10 +08:00
Move away from truncated octahedrons
This commit is contained in:
parent
703ca8b413
commit
66b57a84de
@ -167,8 +167,10 @@ curveType specifies which lines to print, 1 for vertical lines
|
|||||||
sub makeNormalisedGrid {
|
sub makeNormalisedGrid {
|
||||||
my ($z, $gridWidth, $gridHeight, $curveType) = @_;
|
my ($z, $gridWidth, $gridHeight, $curveType) = @_;
|
||||||
|
|
||||||
# offset required to create a regular octagram
|
## offset required to create a regular octagram
|
||||||
my $octagramGap = 1 / (1 + sqrt(2));
|
## my $octagramGap = 1 / (1 + sqrt(2));
|
||||||
|
|
||||||
|
my $octagramGap = 1;
|
||||||
|
|
||||||
# sawtooth wave function for range f($z) = [-$octagramGap .. $octagramGap]
|
# sawtooth wave function for range f($z) = [-$octagramGap .. $octagramGap]
|
||||||
my $offset = (abs((fmod($z * sqrt(2), 4)) - 2) - 1) * $octagramGap;
|
my $offset = (abs((fmod($z * sqrt(2), 4)) - 2) - 1) * $octagramGap;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user