Skip to content

Commit

Permalink
Updated for 0.5.5 release
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklockwood committed Aug 9, 2021
1 parent d63d05a commit 903b4be
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [0.5.5](https://github.com/nicklockwood/Euclid/releases/tag/0.5.5) (2021-08-09)

- Vertices with zero normals are automatically corrected to use the face normal
- Vertex normals are now optional
- Polygons can now be created from an array of vector positions (normals are set automatically)
- Imported models are now converted to use Y-up automatically, matching SceneKit convention

## [0.5.4](https://github.com/nicklockwood/Euclid/releases/tag/0.5.4) (2021-08-04)

- Fixed a regression in `Mesh.fill()` introduced in 0.5.0 that affected nested paths (e.g. text)
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.5.4",
"version": "0.5.5",
"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.5.4"
"tag": "0.5.5"
},
"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 @@ -682,7 +682,7 @@
"@executable_path/../Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 0.5.4;
MARKETING_VERSION = 0.5.5;
OTHER_SWIFT_FLAGS = "-Xfrontend -warn-long-expression-type-checking=75";
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.Euclid;
PRODUCT_MODULE_NAME = "$(PRODUCT_NAME:c99extidentifier)";
Expand Down Expand Up @@ -715,7 +715,7 @@
"@executable_path/../Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 0.5.4;
MARKETING_VERSION = 0.5.5;
OTHER_SWIFT_FLAGS = "-Xfrontend -warn-long-expression-type-checking=75";
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.Euclid;
PRODUCT_MODULE_NAME = "$(PRODUCT_NAME:c99extidentifier)";
Expand Down
1 change: 1 addition & 0 deletions Sources/Polygon.swift
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ public extension Polygon {
let positions = vertices.map { $0.position }
let isConvex = pointsAreConvex(positions)
guard !pointsAreSelfIntersecting(positions),
// Note: Plane init includes check for degeneracy
let plane = Plane(points: positions, convex: isConvex)
else {
return nil
Expand Down

0 comments on commit 903b4be

Please sign in to comment.