Skip to content

shape_type.scad

pinkfish edited this page Jun 26, 2026 · 1 revision

LibFile: 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>

File Contents

  1. Section: Shapes

Section: Shapes

Shapes to use in boxes and stuff.

Function: ShapeNeedsInnerControl()

Description:

If the specified shape needs inner control

Arguments:

By Position What it does
shnape_type the type of shape to check

Module: ShapeByType()

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:

ShapeByType() Example 1
include <boardgame_toolkit.scad>
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_DENSE_HEX, shape_thickness = 2, shape_width = 10));

Example 2:

ShapeByType() Example 2
include <boardgame_toolkit.scad>
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_DENSE_HEX, shape_thickness = 1, shape_width = 14));

Example 3:

ShapeByType() Example 3
include <boardgame_toolkit.scad>
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_DENSE_HEX, shape_thickness = 1, shape_width = 11));

Example 4:

ShapeByType() Example 4
include <boardgame_toolkit.scad>
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_DENSE_TRIANGLE, shape_thickness = 2, shape_width = 10));

Example 5:

ShapeByType() Example 5
include <boardgame_toolkit.scad>
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_CIRCLE, shape_thickness = 2, shape_width = 14));

Example 6:

ShapeByType() Example 6
include <boardgame_toolkit.scad>
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_TRIANGLE, shape_thickness = 2, shape_width = 10));

Example 7:

ShapeByType() Example 7
include <boardgame_toolkit.scad>
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_HEX, shape_thickness = 1, shape_width = 14));

Example 8:

ShapeByType() Example 8
include <boardgame_toolkit.scad>
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_OCTOGON, shape_thickness = 1, shape_width = 16));

Example 9:

ShapeByType() 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:

ShapeByType() 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:

ShapeByType() Example 11
include <boardgame_toolkit.scad>
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_SQUARE, shape_thickness = 2, shape_width = 11));

Example 12:

ShapeByType() 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:

ShapeByType() Example 13
include <boardgame_toolkit.scad>
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_CLOUD, shape_thickness = 2, shape_width = 11));

Example 14:

ShapeByType() Example 14
include <boardgame_toolkit.scad>
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_SUPERSHAPE, shape_thickness = 2));

Example 15:

ShapeByType() 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:

ShapeByType() 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:

ShapeByType() 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:

ShapeByType() 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:

ShapeByType() 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:

ShapeByType() 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:

ShapeByType() 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:

ShapeByType() 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:

ShapeByType() 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:

ShapeByType() 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:

ShapeByType() 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:

ShapeByType() 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:

ShapeByType() 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:

ShapeByType() 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:

ShapeByType() 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:

ShapeByType() 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:

ShapeByType() 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:

ShapeByType() 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:

ShapeByType() 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:

ShapeByType() 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:

ShapeByType() 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:

ShapeByType() 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:

ShapeByType() 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:

ShapeByType() 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:

ShapeByType() Example 39
include <boardgame_toolkit.scad>
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_DELTOID_TRIHEXAGONAL, shape_thickness = 1, shape_width = 10));

Example 40:

ShapeByType() Example 40
include <boardgame_toolkit.scad>
ShapeByType(MakeShapeObject(shape_type = SHAPE_TYPE_DELTOID_TRIHEXAGONAL_KITE, shape_thickness = 1, shape_width = 10));

Example 41:

ShapeByType() 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:

ShapeByType() 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:

ShapeByType() 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:

ShapeByType() 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:

ShapeByType() 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:

ShapeByType() 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));

Clone this wiki locally