-
Notifications
You must be signed in to change notification settings - Fork 4
shape_type.scad
Used in the lids to generate shapes of specific types.
To use, add the following lines to the beginning of your file:
include <boardgame_toolkit.scad>
Shapes to use in boxes and stuff.
Description:
If the specified shape needs inner control
Arguments:
| By Position | What it does |
|---|---|
shnape_type |
the type of shape to check |
Description:
Creates shapes by a specific type to use in the lids. This is pulled out so the shape creation layout are handled independantly.
Example 1:
include <boardgame_toolkit.scad>
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_DENSE_HEX, shape_thickness = 2, shape_width = 10));
Example 2:
include <boardgame_toolkit.scad>
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_DENSE_HEX, shape_thickness = 1, shape_width = 14));
Example 3:
include <boardgame_toolkit.scad>
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_DENSE_HEX, shape_thickness = 1, shape_width = 11));
Example 4:
include <boardgame_toolkit.scad>
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_DENSE_TRIANGLE, shape_thickness = 2, shape_width = 10));
Example 5:
include <boardgame_toolkit.scad>
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_CIRCLE, shape_thickness = 2, shape_width = 14));
Example 6:
include <boardgame_toolkit.scad>
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_TRIANGLE, shape_thickness = 2, shape_width = 10));
Example 7:
include <boardgame_toolkit.scad>
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_HEX, shape_thickness = 1, shape_width = 14));
Example 8:
include <boardgame_toolkit.scad>
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_OCTOGON, shape_thickness = 1, shape_width = 16));
Example 9:
include <boardgame_toolkit.scad>
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_OCTOGON, shape_thickness = 1, shape_width = 13, shape_aspect_ratio=1.25));
Example 10:
include <boardgame_toolkit.scad>
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_OCTOGON, shape_thickness = 1, shape_width = 10.5, shape_aspect_ratio=1));
Example 11:
include <boardgame_toolkit.scad>
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_SQUARE, shape_thickness = 2, shape_width = 11));
Example 12:
include <boardgame_toolkit.scad>
default_lid_shape_rounding = 3;
ShapeByType(MakeShapeObject(shape_type= SHAPE_TYPE_SQUARE, shape_thickness = 2, shape_width = 11));
Example 13:
include <boardgame_toolkit.scad>
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_CLOUD, shape_thickness = 2, shape_width = 11));
Example 14:
include <boardgame_toolkit.scad>
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_SUPERSHAPE, shape_thickness = 2));
Example 15:
include <boardgame_toolkit.scad>
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_SUPERSHAPE, shape_thickness = 2, supershape_m1 = 12, supershape_m2 = 12,
supershape_n1 = 1, supershape_b = 1.5, shape_width = 15));
Example 16:
include <boardgame_toolkit.scad>
$polygon_x = 0;
$polygon_y = 0;
$polygon_grid_rows = 2;
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_PENTAGON_R1, shape_thickness = 1, shape_width = 10));
Example 17:
include <boardgame_toolkit.scad>
$polygon_width = 50;
$polygon_length = 50;
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_PENTAGON_R2, shape_thickness = 1, shape_width = 10));
Example 18:
include <boardgame_toolkit.scad>
$polygon_width = 50;
$polygon_length = 50;
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_PENTAGON_R2, shape_thickness = 1, shape_width = 10, pentagon_first_angle_modifier=10));
Example 19:
include <boardgame_toolkit.scad>
$polygon_x = 0;
$polygon_y = 0;
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_PENTAGON_R3, shape_thickness = 1, shape_width = 10));
Example 20:
include <boardgame_toolkit.scad>
$polygon_x = 0;
$polygon_y = 0;
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_PENTAGON_R4, shape_thickness = 1, shape_width = 10));
Example 21:
include <boardgame_toolkit.scad>
$polygon_x = 0;
$polygon_y = 0;
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_PENTAGON_R5, shape_thickness = 1, shape_width = 10));
Example 22:
include <boardgame_toolkit.scad>
$polygon_x = 0;
$polygon_y = 0;
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_PENTAGON_R6, shape_thickness = 1, shape_width = 10));
Example 23:
include <boardgame_toolkit.scad>
$polygon_x = 0;
$polygon_y = 0;
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_PENTAGON_R7, shape_thickness = 1, shape_width = 10));
Example 24:
include <boardgame_toolkit.scad>
$polygon_x = 0;
$polygon_y = 0;
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_PENTAGON_R8, shape_thickness = 1, shape_width = 10));
Example 25:
include <boardgame_toolkit.scad>
$polygon_x = 0;
$polygon_y = 0;
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_PENTAGON_R9, shape_thickness = 1, shape_width = 10));
Example 26:
include <boardgame_toolkit.scad>
$polygon_x = 0;
$polygon_y = 0;
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_PENTAGON_R10, shape_thickness = 1, shape_width = 10));
Example 27:
include <boardgame_toolkit.scad>
$polygon_x = 0;
$polygon_y = 0;
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_PENTAGON_R11, shape_thickness = 1, shape_width = 10));
Example 28:
include <boardgame_toolkit.scad>
$polygon_x = 0;
$polygon_y = 0;
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_PENTAGON_R12, shape_thickness = 1, shape_width = 10));
Example 29:
include <boardgame_toolkit.scad>
$polygon_x = 0;
$polygon_y = 0;
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_PENTAGON_R13, shape_thickness = 1, shape_width = 10));
Example 30:
include <boardgame_toolkit.scad>
$polygon_x = 0;
$polygon_y = 0;
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_PENTAGON_R14, shape_thickness = 1, shape_width = 10));
Example 31:
include <boardgame_toolkit.scad>
$polygon_x = 0;
$polygon_y = 0;
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_PENTAGON_R15, shape_thickness = 1, shape_width = 10));
Example 32:
include <boardgame_toolkit.scad>
$polygon_x = 0;
$polygon_y = 0;
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_LIZARD, shape_thickness = 1, shape_width = 10));
Example 33:
include <boardgame_toolkit.scad>
$polygon_x = 0;
$polygon_y = 0;
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_RHOMBI_TRI_HEXAGONAL, shape_thickness = 1, shape_width = 10));
Example 34:
include <boardgame_toolkit.scad>
$polygon_x = 0;
$polygon_y = 0;
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_HALF_REGULAR_HEXAGON, shape_thickness = 1, shape_width = 20));
Example 35:
include <boardgame_toolkit.scad>
$polygon_x = 0;
$polygon_y = 0;
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_DROP, shape_thickness = 1, shape_width = 10));
Example 36:
include <boardgame_toolkit.scad>
$polygon_width = 100;
$polygon_length = 100;
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_VORONOI, shape_thickness = 1, shape_width = 10));
Example 37:
include <boardgame_toolkit.scad>
$polygon_width = 100;
$polygon_length = 100;
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_PENROSE_TILING_5, shape_thickness = 1, shape_width = 10));
Example 38:
include <boardgame_toolkit.scad>
$polygon_width = 100;
$polygon_length = 100;
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_PENROSE_TILING_7, shape_thickness = 1, shape_width = 10));
Example 39:
include <boardgame_toolkit.scad>
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_DELTOID_TRIHEXAGONAL, shape_thickness = 1, shape_width = 10));
Example 40:
include <boardgame_toolkit.scad>
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_DELTOID_TRIHEXAGONAL_KITE, shape_thickness = 1, shape_width = 10));
Example 41:
include <boardgame_toolkit.scad>
$polygon_x = 0;
$polygon_y = 0;
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_PEGASUS, shape_thickness = 1, shape_width = 25));
Example 42:
include <boardgame_toolkit.scad>
$polygon_width = 100;
$polygon_length = 100;
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_GOOSE, shape_thickness = 1, shape_width = 25));
Example 43:
include <boardgame_toolkit.scad>
$polygon_width = 100;
$polygon_length = 100;
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_CHICKEN, shape_thickness = 1, shape_width = 25));
Example 44:
include <boardgame_toolkit.scad>
$polygon_width = 100;
$polygon_length = 100;
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_SHEEP, shape_thickness = 1, shape_width = 25));
Example 45:
include <boardgame_toolkit.scad>
$polygon_width = 101;
$polygon_length = 100;
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_BIRD, shape_thickness = 1, shape_width = 25));
Example 46:
include <boardgame_toolkit.scad>
$polygon_width = 101;
$polygon_length = 100;
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_FLYING_BIRD, shape_thickness = 1, shape_width = 25));
Table of Contents
Function Index
Topics Index
Cheat Sheet
Tutorials
Boxes:
- cap_box.scad
- cap_box_polygon.scad
- filament_hinge_box.scad
- hinge_box.scad
- inset_box.scad
- magnetic_box.scad
- no_lid.scad
- sliding_box.scad
- sliding_catch_box.scad
- slipover_box.scad
- slipover_path_box.scad
Basics:
Dividers:
Shapes:
Slicing:
CardLibrary:
Miscellaneous: