Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pca006132 committed Oct 15, 2024
1 parent 66fa688 commit ec9e54b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ else()
-Wno-array-bounds
-Wno-stringop-overflow
-Wno-alloc-size-larger-than
-Wno-narrowing
)
else()
list(APPEND WARNING_FLAGS -Wall -Wno-unused -Wno-shorten-64-to-32)
Expand Down
2 changes: 1 addition & 1 deletion src/csg_tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ std::shared_ptr<CsgNode> CsgNode::Boolean(
}

std::shared_ptr<CsgNode> CsgNode::Translate(const vec3 &t) const {
mat3x4 transform(1.0);
mat3x4 transform = Identity3x4();
transform[3] += t;
return Transform(transform);
}
Expand Down
2 changes: 1 addition & 1 deletion src/impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace manifold {
struct Manifold::Impl {
struct Relation {
int originalID = -1;
mat3x4 transform = mat3x4(1);
mat3x4 transform = Identity3x4();
bool backSide = false;
};
struct MeshRelationD {
Expand Down

0 comments on commit ec9e54b

Please sign in to comment.