// AngelCAD
double f(double sign, double x, double n)
{
double xn = pow(x,n);
double x1n = pow(1-x,n);
return sign*(xn/(xn+x1n) + 0.5);
}
shape@ main_shape()
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// OpenSCAD script | |
extrude_height = 0.5; | |
scale_factor = 1.0; | |
linear_extrude(height=extrude_height) | |
scale(scale_factor) | |
mayan_haab_15_inch_dxf(); | |
module mayan_haab_15_inch_dxf() | |
{ |
AngelCAD code for the model at https://en.wikipedia.org/wiki/Constructive_solid_geometry
// AngelCAD code sample: csg_wikipedia.as
// https://en.wikipedia.org/wiki/Constructive_solid_geometry
// https://arnholm.github.io/angelcad-docs/
shape@ main_shape()
{
NewerOlder