Manifold 3.0
Robust geometry
 
Loading...
Searching...
No Matches
samples.h
1// Copyright 2021 The Manifold Authors.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#pragma once
16#include "manifold/manifold.h"
17
18namespace manifold {
19
36
37Manifold TorusKnot(int p, int q, double majorRadius, double minorRadius,
38 double threadRadius, int circularSegments = 0,
39 int linearSegments = 0);
40
41Manifold StretchyBracelet(double radius = 30.0, double height = 8.0,
42 double width = 15.0, double thickness = 0.4,
43 int nDecor = 20, int nCut = 27, int nDivision = 30);
44
45Manifold MengerSponge(int n = 3);
46
47Manifold RoundedFrame(double edgeLength, double radius,
48 int circularSegments = 0);
49
50Manifold TetPuzzle(double edgeLength, double gap, int nDivisions);
51
53
54Manifold GyroidModule(double size = 20, int n = 20);
55
56Manifold CondensedMatter(int fn = 16); // end of Samples
58} // namespace manifold
This library's internal representation of an oriented, 2-manifold, triangle mesh - a simple boundary-...
Definition manifold.h:254
Manifold TorusKnot(int p, int q, double majorRadius, double minorRadius, double threadRadius, int circularSegments=0, int linearSegments=0)
Definition knot.cpp:41
Manifold MengerSponge(int n=3)
Definition menger_sponge.cpp:43
Manifold Scallop()
Definition scallop.cpp:23
Manifold GyroidModule(double size=20, int n=20)
Definition gyroid_module.cpp:49
Manifold CondensedMatter(int fn=16)
Definition condensed_matter.cpp:139
Manifold TetPuzzle(double edgeLength, double gap, int nDivisions)
Definition tet_puzzle.cpp:28
Manifold StretchyBracelet(double radius=30.0, double height=8.0, double width=15.0, double thickness=0.4, int nDecor=20, int nCut=27, int nDivision=30)
Definition bracelet.cpp:75
Manifold RoundedFrame(double edgeLength, double radius, int circularSegments=0)
Definition rounded_frame.cpp:29