Skip to content

Commit

Permalink
Update for 0.7.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklockwood committed Sep 27, 2023
1 parent d808af3 commit e6a9f5b
Show file tree
Hide file tree
Showing 29 changed files with 24,087 additions and 19,805 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log

## [0.7.1](https://github.com/nicklockwood/Euclid/releases/tag/0.7.1) (2023-09-27)

- Added `Mesh.cubeMapped()` method
- Removed stray `print()` statement

## [0.7.0](https://github.com/nicklockwood/Euclid/releases/tag/0.7.0) (2023-09-23)

- Added `Mesh.icosahedron()` primitive
Expand Down
6 changes: 3 additions & 3 deletions Euclid.docc/ConstructingMeshes.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ Euclid offers a number of helper methods to quickly create complex geometry.
The simplest way to create a ``Mesh`` is to start with an existing primitive, such as a cube or sphere.
The following primitive types are available in Euclid, and are defined as static constructor methods on ``Mesh``:

- ``Mesh/cube(center:size:faces:material:)-imdm`` - A cubic ``Mesh`` (or cuboid, if you specify different values for the width, height and/or depth).
- ``Mesh/cube(center:size:faces:wrapMode:material:)-8t5q8`` - A cubic ``Mesh`` (or cuboid, if you specify different values for the width, height and/or depth).
- ``Mesh/sphere(radius:slices:stacks:poleDetail:faces:wrapMode:material:)`` - A spherical `Mesh`.
- ``Mesh/cylinder(radius:height:slices:poleDetail:faces:wrapMode:material:)`` - A cylindrical `Mesh`.
- ``Mesh/cone(radius:height:slices:poleDetail:addDetailAtBottomPole:faces:wrapMode:material:)`` - A conical ``Mesh``.
- ``Mesh/cone(radius:height:slices:stacks:poleDetail:addDetailAtBottomPole:faces:wrapMode:material:)`` - A conical ``Mesh``.

All `Mesh` instances are made of flat polygons.
Since true curves cannot be represented using straight edges, the `sphere`, `cylinder` and `cone` primitives are approximations.
Expand Down Expand Up @@ -80,7 +80,7 @@ The following CSG operations are defined as methods on the ``Mesh`` type:
- ``Mesh/subtracting(_:isCancelled:)`` - Subtracts the volume of one `Mesh` from another.
- ``Mesh/symmetricDifference(_:isCancelled:)-swift.type.method`` - Produces a shape representing the non-overlapping parts of the input `Mesh`es (this is useful for rendering text glyphs).
- ``Mesh/union(_:isCancelled:)-swift.method`` - Combines two intersecting `Mesh`es, removing internal faces and leaving only the outer shell around both shapes (logical OR).
- ``Mesh/intersection(_:isCancelled:)`` - Returns a single ``Mesh`` representing the common volume of two intersecting ``Mesh``es (logical AND).
- ``Mesh/intersection(_:isCancelled:)-swift.method`` - Returns a single ``Mesh`` representing the common volume of two intersecting ``Mesh``es (logical AND).
- ``Mesh/stencil(_:isCancelled:)-swift.method`` - This effectively "paints" part of one ``Mesh`` with the material from another.

All CSG operations require ``Mesh``es that are "watertight", that is they have no holes in their surface.
Expand Down
5 changes: 3 additions & 2 deletions Euclid.docc/Extensions/Mesh.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
### Geometric Primitives

- ``Mesh/cone(radius:height:slices:stacks:poleDetail:addDetailAtBottomPole:faces:wrapMode:material:)``
- ``Mesh/cube(center:size:faces:material:)-7wdr2``
- ``Mesh/cube(center:size:faces:material:)-imdm``
- ``Mesh/cube(center:size:faces:wrapMode:material:)-8t5q8``
- ``Mesh/cube(center:size:faces:wrapMode:material:)-eado``
- ``Mesh/cylinder(radius:height:slices:poleDetail:faces:wrapMode:material:)``
- ``Mesh/sphere(radius:slices:stacks:poleDetail:faces:wrapMode:material:)``
- ``Mesh/icosahedron(radius:faces:wrapMode:material:)``
Expand Down Expand Up @@ -114,6 +114,7 @@
- ``Mesh/withTextureTransform(_:)``
- ``Mesh/sphereMapped()``
- ``Mesh/cylinderMapped()``
- ``Mesh/cubeMapped()``

### Merging Meshes

Expand Down
4 changes: 2 additions & 2 deletions Euclid.podspec.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Euclid",
"version": "0.7.0",
"version": "0.7.1",
"license": {
"type": "MIT",
"file": "LICENSE.md"
Expand All @@ -10,7 +10,7 @@
"authors": "Nick Lockwood",
"source": {
"git": "https://github.com/nicklockwood/Euclid.git",
"tag": "0.7.0"
"tag": "0.7.1"
},
"source_files": "Sources",
"requires_arc": true,
Expand Down
4 changes: 2 additions & 2 deletions Euclid.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@
"@executable_path/../Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 0.7.0;
MARKETING_VERSION = 0.7.1;
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++14";
OTHER_SWIFT_FLAGS = "-Xfrontend -warn-long-expression-type-checking=75";
Expand Down Expand Up @@ -823,7 +823,7 @@
"@executable_path/../Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 0.7.0;
MARKETING_VERSION = 0.7.1;
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++14";
OTHER_SWIFT_FLAGS = "-Xfrontend -warn-long-expression-type-checking=75";
Expand Down
1 change: 1 addition & 0 deletions all_identifiers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ doc://com.charcoaldesign.Euclid/documentation/Euclid/Mesh/convexHull(of:material
doc://com.charcoaldesign.Euclid/documentation/Euclid/Mesh/convexHull(of:material:)-91swk
doc://com.charcoaldesign.Euclid/documentation/Euclid/Mesh/cube(center:size:faces:wrapMode:material:)-8t5q8
doc://com.charcoaldesign.Euclid/documentation/Euclid/Mesh/cube(center:size:faces:wrapMode:material:)-eado
doc://com.charcoaldesign.Euclid/documentation/Euclid/Mesh/cubeMapped()
doc://com.charcoaldesign.Euclid/documentation/Euclid/Mesh/cylinder(radius:height:slices:poleDetail:faces:wrapMode:material:)
doc://com.charcoaldesign.Euclid/documentation/Euclid/Mesh/cylinderMapped()
doc://com.charcoaldesign.Euclid/documentation/Euclid/Mesh/detessellate()
Expand Down
1 change: 1 addition & 0 deletions all_symbols.txt
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@
- ``doc://com.charcoaldesign.Euclid/documentation/Euclid/Mesh/convexHull(of:material:)-91swk``
- ``doc://com.charcoaldesign.Euclid/documentation/Euclid/Mesh/cube(center:size:faces:wrapMode:material:)-8t5q8``
- ``doc://com.charcoaldesign.Euclid/documentation/Euclid/Mesh/cube(center:size:faces:wrapMode:material:)-eado``
- ``doc://com.charcoaldesign.Euclid/documentation/Euclid/Mesh/cubeMapped()``
- ``doc://com.charcoaldesign.Euclid/documentation/Euclid/Mesh/cylinder(radius:height:slices:poleDetail:faces:wrapMode:material:)``
- ``doc://com.charcoaldesign.Euclid/documentation/Euclid/Mesh/cylinderMapped()``
- ``doc://com.charcoaldesign.Euclid/documentation/Euclid/Mesh/detessellate()``
Expand Down
Loading

0 comments on commit e6a9f5b

Please sign in to comment.