Skip to content

Commit

Permalink
Update for 0.7.5 release
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklockwood committed Jan 29, 2024
1 parent 1004551 commit e3379f7
Show file tree
Hide file tree
Showing 153 changed files with 22,901 additions and 21,353 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## [0.7.5](https://github.com/nicklockwood/Euclid/releases/tag/0.7.5) (2024-01-29)

- Added I/O functions
- Fixed transform not being applied to meshes created from a RealityKit `ModelEntity`
- Materials are now preserved for meshes created from RealityKit models
- Deprecated the `Quaternion` type in favor of `Rotation`

## [0.7.4](https://github.com/nicklockwood/Euclid/releases/tag/0.7.4) (2024-01-19)

- Removed stray `print()` statement from RealityKit exporter
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.4",
"version": "0.7.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.7.4"
"tag": "0.7.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 @@ -796,7 +796,7 @@
"@executable_path/../Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 0.7.4;
MARKETING_VERSION = 0.7.5;
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 @@ -835,7 +835,7 @@
"@executable_path/../Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 0.7.4;
MARKETING_VERSION = 0.7.5;
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
5 changes: 2 additions & 3 deletions Sources/Polygon.swift
Original file line number Diff line number Diff line change
Expand Up @@ -640,11 +640,10 @@ extension Collection where Element == Polygon {

/// Group polygons by plane
func groupedByPlane() -> [(plane: Plane, polygons: [Polygon])] {
if isEmpty {
let polygons = sorted(by: { $0.plane.w < $1.plane.w })
guard var prev = polygons.first else {
return []
}
let polygons = sorted(by: { $0.plane.w < $1.plane.w })
var prev = polygons[0]
var sorted = [(Plane, [Polygon])]()
var groups = [(Plane, [Polygon])]()
for p in polygons {
Expand Down
2 changes: 2 additions & 0 deletions all_identifiers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -581,10 +581,12 @@ doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation//=(_:_:)
doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation/Decodable-Implementations
doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation/Encodable-Implementations
doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation/Equatable-Implementations
doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation/Hashable-Implementations
doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation/angle
doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation/axis
doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation/encode(to:)
doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation/forward
doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation/hash(into:)
doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation/identity
doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation/init()
doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation/init(_:)-5w6mn
Expand Down
2 changes: 2 additions & 0 deletions all_symbols.txt
Original file line number Diff line number Diff line change
Expand Up @@ -581,10 +581,12 @@
- ``doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation/Decodable-Implementations``
- ``doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation/Encodable-Implementations``
- ``doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation/Equatable-Implementations``
- ``doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation/Hashable-Implementations``
- ``doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation/angle``
- ``doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation/axis``
- ``doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation/encode(to:)``
- ``doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation/forward``
- ``doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation/hash(into:)``
- ``doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation/identity``
- ``doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation/init()``
- ``doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation/init(_:)-5w6mn``
Expand Down
3 changes: 2 additions & 1 deletion docs/data/documentation/euclid.json
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,7 @@
"type" : "text"
}
],
"deprecated" : true,
"fragments" : [
{
"kind" : "keyword",
Expand Down Expand Up @@ -642,7 +643,7 @@
"doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation": {
"abstract" : [
{
"text" : "A struct that represents an orientation or rotation in 3D space.",
"text" : "An orientation or rotation in 3D space.",
"type" : "text"
}
],
Expand Down
3 changes: 2 additions & 1 deletion docs/data/documentation/euclid/angle.json
Original file line number Diff line number Diff line change
Expand Up @@ -1715,6 +1715,7 @@
"type" : "text"
}
],
"deprecated" : true,
"fragments" : [
{
"kind" : "keyword",
Expand Down Expand Up @@ -1745,7 +1746,7 @@
"doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation": {
"abstract" : [
{
"text" : "A struct that represents an orientation or rotation in 3D space.",
"text" : "An orientation or rotation in 3D space.",
"type" : "text"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@
"doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation": {
"abstract" : [
{
"text" : "A struct that represents an orientation or rotation in 3D space.",
"text" : "An orientation or rotation in 3D space.",
"type" : "text"
}
],
Expand Down
5 changes: 5 additions & 0 deletions docs/data/documentation/euclid/bounds/rotate(by:)-ntgj.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
{
"name" : "Euclid"
}
],
"platforms" : [

],
"role" : "symbol",
"roleHeading" : "Instance Method",
Expand Down Expand Up @@ -241,6 +244,7 @@
"type" : "text"
}
],
"deprecated" : true,
"fragments" : [
{
"kind" : "keyword",
Expand Down Expand Up @@ -290,6 +294,7 @@
"type" : "text"
}
],
"deprecated" : true,
"fragments" : [
{
"kind" : "keyword",
Expand Down
2 changes: 1 addition & 1 deletion docs/data/documentation/euclid/bounds/rotated(by:).json
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@
"doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation": {
"abstract" : [
{
"text" : "A struct that represents an orientation or rotation in 3D space.",
"text" : "An orientation or rotation in 3D space.",
"type" : "text"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@
"type" : "text"
}
],
"deprecated" : true,
"fragments" : [
{
"kind" : "keyword",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
{
"name" : "Euclid"
}
],
"platforms" : [

],
"role" : "symbol",
"roleHeading" : "Instance Method",
Expand Down Expand Up @@ -241,6 +244,7 @@
"type" : "text"
}
],
"deprecated" : true,
"fragments" : [
{
"kind" : "keyword",
Expand Down Expand Up @@ -290,6 +294,7 @@
"type" : "text"
}
],
"deprecated" : true,
"fragments" : [
{
"kind" : "keyword",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@
"doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation": {
"abstract" : [
{
"text" : "A struct that represents an orientation or rotation in 3D space.",
"text" : "An orientation or rotation in 3D space.",
"type" : "text"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@
"doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation": {
"abstract" : [
{
"text" : "A struct that represents an orientation or rotation in 3D space.",
"text" : "An orientation or rotation in 3D space.",
"type" : "text"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@
"type" : "text"
}
],
"deprecated" : true,
"fragments" : [
{
"kind" : "keyword",
Expand Down
5 changes: 5 additions & 0 deletions docs/data/documentation/euclid/mesh/rotate(by:)-3uymx.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
{
"name" : "Euclid"
}
],
"platforms" : [

],
"role" : "symbol",
"roleHeading" : "Instance Method",
Expand Down Expand Up @@ -241,6 +244,7 @@
"type" : "text"
}
],
"deprecated" : true,
"fragments" : [
{
"kind" : "keyword",
Expand Down Expand Up @@ -290,6 +294,7 @@
"type" : "text"
}
],
"deprecated" : true,
"fragments" : [
{
"kind" : "keyword",
Expand Down
2 changes: 1 addition & 1 deletion docs/data/documentation/euclid/mesh/rotate(by:)-7y2vv.json
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@
"doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation": {
"abstract" : [
{
"text" : "A struct that represents an orientation or rotation in 3D space.",
"text" : "An orientation or rotation in 3D space.",
"type" : "text"
}
],
Expand Down
2 changes: 1 addition & 1 deletion docs/data/documentation/euclid/mesh/rotated(by:).json
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@
"doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation": {
"abstract" : [
{
"text" : "A struct that represents an orientation or rotation in 3D space.",
"text" : "An orientation or rotation in 3D space.",
"type" : "text"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@
"type" : "text"
}
],
"deprecated" : true,
"fragments" : [
{
"kind" : "keyword",
Expand Down
2 changes: 1 addition & 1 deletion docs/data/documentation/euclid/path/rotate(by:)-3m9le.json
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@
"doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation": {
"abstract" : [
{
"text" : "A struct that represents an orientation or rotation in 3D space.",
"text" : "An orientation or rotation in 3D space.",
"type" : "text"
}
],
Expand Down
5 changes: 5 additions & 0 deletions docs/data/documentation/euclid/path/rotate(by:)-93ypi.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
{
"name" : "Euclid"
}
],
"platforms" : [

],
"role" : "symbol",
"roleHeading" : "Instance Method",
Expand Down Expand Up @@ -241,6 +244,7 @@
"type" : "text"
}
],
"deprecated" : true,
"fragments" : [
{
"kind" : "keyword",
Expand Down Expand Up @@ -290,6 +294,7 @@
"type" : "text"
}
],
"deprecated" : true,
"fragments" : [
{
"kind" : "keyword",
Expand Down
2 changes: 1 addition & 1 deletion docs/data/documentation/euclid/path/rotated(by:).json
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@
"doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation": {
"abstract" : [
{
"text" : "A struct that represents an orientation or rotation in 3D space.",
"text" : "An orientation or rotation in 3D space.",
"type" : "text"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@
"type" : "text"
}
],
"deprecated" : true,
"fragments" : [
{
"kind" : "keyword",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@
"doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation": {
"abstract" : [
{
"text" : "A struct that represents an orientation or rotation in 3D space.",
"text" : "An orientation or rotation in 3D space.",
"type" : "text"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
{
"name" : "Euclid"
}
],
"platforms" : [

],
"role" : "symbol",
"roleHeading" : "Instance Method",
Expand Down Expand Up @@ -241,6 +244,7 @@
"type" : "text"
}
],
"deprecated" : true,
"fragments" : [
{
"kind" : "keyword",
Expand Down Expand Up @@ -290,6 +294,7 @@
"type" : "text"
}
],
"deprecated" : true,
"fragments" : [
{
"kind" : "keyword",
Expand Down
2 changes: 1 addition & 1 deletion docs/data/documentation/euclid/pathpoint/rotated(by:).json
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@
"doc://com.charcoaldesign.Euclid/documentation/Euclid/Rotation": {
"abstract" : [
{
"text" : "A struct that represents an orientation or rotation in 3D space.",
"text" : "An orientation or rotation in 3D space.",
"type" : "text"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@
"type" : "text"
}
],
"deprecated" : true,
"fragments" : [
{
"kind" : "keyword",
Expand Down
Loading

0 comments on commit e3379f7

Please sign in to comment.