Skip to content

Commit 1730070

Browse files
committed
Merge pull request godotengine#101351 from akien-mga/manifold-3.0.1
manifold: Update to 3.0.1
2 parents 06a6a0b + 15741d4 commit 1730070

File tree

10 files changed

+365
-137
lines changed

10 files changed

+365
-137
lines changed

thirdparty/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,12 +567,12 @@ in the MSVC debugger.
567567
## manifold
568568

569569
- Upstream: https://github.com/elalish/manifold
570-
- Version: master (36035428bc32302a9d7c9ee1ecc833fb8394a2a3, 2024)
570+
- Version: 3.0.1 (98b8142519d35c13e0e25cfa9fd6e3a271403be6, 2024)
571571
- License: Apache 2.0
572572

573573
File extracted from upstream source:
574574

575-
- `src/`
575+
- `src/` and `include/`, except from `CMakeLists.txt`, `cross_section.cpp` and `meshIO.{cpp,h}`
576576
- `AUTHORS`, `LICENSE`
577577

578578

thirdparty/manifold/include/manifold/manifold.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
#include <functional>
1717
#include <memory>
1818

19+
#ifdef MANIFOLD_EXPORT
20+
#include <iostream>
21+
#endif
22+
1923
#include "manifold/common.h"
2024
#include "manifold/vec_view.h"
2125

@@ -376,6 +380,10 @@ class Manifold {
376380

377381
struct Impl;
378382

383+
#ifdef MANIFOLD_EXPORT
384+
static Manifold ImportMeshGL64(std::istream& stream);
385+
#endif
386+
379387
private:
380388
Manifold(std::shared_ptr<CsgNode> pNode_);
381389
Manifold(std::shared_ptr<Impl> pImpl_);

thirdparty/manifold/src/boolean_result.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,7 @@ Manifold::Impl Boolean3::Result(OpType op) const {
857857
UpdateReference(outR, inP_, inQ_, invertQ);
858858

859859
outR.SimplifyTopology();
860+
outR.RemoveUnreferencedVerts();
860861

861862
if (ManifoldParams().intermediateChecks)
862863
DEBUG_ASSERT(outR.Is2Manifold(), logicErr,

thirdparty/manifold/src/cross_section/cross_section.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -740,8 +740,8 @@ double CrossSection::Area() const { return C2::Area(GetPaths()->paths_); }
740740
/**
741741
* Return the number of vertices in the CrossSection.
742742
*/
743-
int CrossSection::NumVert() const {
744-
int n = 0;
743+
size_t CrossSection::NumVert() const {
744+
size_t n = 0;
745745
auto paths = GetPaths()->paths_;
746746
for (auto p : paths) {
747747
n += p.size();
@@ -753,7 +753,7 @@ int CrossSection::NumVert() const {
753753
* Return the number of contours (both outer and inner paths) in the
754754
* CrossSection.
755755
*/
756-
int CrossSection::NumContour() const { return GetPaths()->paths_.size(); }
756+
size_t CrossSection::NumContour() const { return GetPaths()->paths_.size(); }
757757

758758
/**
759759
* Does the CrossSection contain any contours?

0 commit comments

Comments
 (0)