Slicer Discord
Sharp Cuboctahedron – 3D-printbaar model van Thingiverse Thingiverse

Sharp Cuboctahedron

door gigl
1 Downloads
2 Likes
0 Makes
Model downloaden
This is a Cuboctahedron, but its edges are sharp.

It was made with pythonscad's new feature to render a sphere with a angle-dependent radius which is already available available in github.

Get pythonscad at http://pythonscad.org/

The simple used code is at the bottom.
You can easily change the sharpness by changing the exponent of the pow or basically creating other stuff instead.

=============

from openscad import *
from math import *

def dot(v1, v2):
return v1[0]*v2[0] + v1[1]*v2[1] + v1[2]*v2[2]

def mydotmax(v, dirs):
res = 0
for dir in dirs:
res = max(res, abs(dot(v, dir)))
return res

dirs=[]

dirs.append([0.0,0.0,1.0])
dirs.append([1.0,0.0,0.0])
dirs.append([0.0,1.0,0.0])
dirs.append([0.5,0.5,0.5])
dirs.append([0.5,0.5,-0.5])
dirs.append([0.5,-0.5,0.5])
dirs.append([0.5,-0.5,-0.5])

def rfunc(v):
cf = mydotmax(v, dirs)
return 10/pow(cf,1.5)

sphere(rfunc,fs=0.5,fn=10).show()


Bron
Thingiverse
Wat je nodig hebt om te printen: Beginner Lage betrouwbaarheid
Eendelig
Supports 1/3
Montage 0/3
Instellingen 1/3
Bedgrootte 0/3
Nabewerking 0/3
Printer
FDM / FFF
Bestandsformaat
STL
Materiaal
ABS, Carbon Fiber
Software
Cura, PrusaSlicer of vergelijkbaar
Nog geen beoordelingen
Nog geen reacties – wees de eerste!
Feed Blog Slicer Kostenrekenmachine Zoeken op afbeelding Indienen Kontakt Discord ☕ Buy me a coffee
DE EN FR ES IT NL

Toevoegen aan collectie