How do I add a base to the surface I'm trying to print?
Target machine is a Creality Ender 3 Pro.
I'm using numpy-stl and surf2stl to come up with the desired surface in python:
def SOquestion():
pᵢs = [i / 100 for i in range(50, 96, 1)]
pⱼs = pᵢs
X, Y = np.meshgrid(pᵢs, pⱼs)
Z = pₖGivenpᵢAndpⱼ(X, Y)
stlFile = "surfaceOfCriticalValues.stl"
surf2stl.write(stlFile, X, Y, Z)
theMesh = mesh.Mesh.from_file(stlFile)
plotFromStlFile(stlFile)
@np.vectorize
def pₖGivenpᵢAndpⱼ(pᵢ, pⱼ):
a = pᵢ * pⱼ / ((1 - pᵢ) * (1 - pⱼ))
return a / (a + 1)
I want this surface to be printable. I figure I could add the base to the mesh but I don't know how to draw all the triangles?