File:Octacon.stl

From Polytope Wiki
Jump to navigation Jump to search

Octacon.stl(file size: 52 KB, MIME type: application/sla)

Summary[edit | edit source]

Description 3d model of an octacon.
Date 23:02, 25 February 2023 (UTC)
Source

Own work. Made in OpenSCAD.

num_sides = 4;
resolution = 256;
angle=(2*num_sides-2)*180/(2*num_sides);

for (j = [0,1]) {
  intersection_for (i = [0 : num_sides]) {
    rotate([0,(2*i+j)*180/num_sides,180*j])
      rotate_extrude(angle=180,$fn=resolution)
        polygon
          ( [ [0,cos(angle/2)]
            , [2*sin(angle/2),-cos(angle/2)]
            , [0,-cos(angle/2)]
            ]
          );
  };
};
Author Sycamore916 (talk)

Licensing[edit | edit source]

w:Creative Commons

attribution share alike

This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeDimensionsUserComment
current23:02, 25 February 2023 (52 KB)Sycamore916 (talk | contribs){{Information | Description = 3d model of an octacon. | Source = {{own}}. Made in OpenSCAD. <pre> num_sides = 4; resolution = 256; angle=(2*num_sides-2)*180/(2*num_sides); for (j = [0,1]) { intersection_for (i = [0 : num_sides]) { rotate([0,(2*i+j)*180/num_sides,180*j]) rotate_extrude(angle=180,$fn=resolution) polygon ( [ [0,cos(angle/2)] , [2*sin(angle/2),-cos(angle/2)] , [0,-cos(angle/2)] ] ); }; }; </pre> |...

There are no pages that use this file.