Skip to content

Commit

Permalink
Fix part color image
Browse files Browse the repository at this point in the history
  • Loading branch information
huxingyi committed Jan 1, 2023
1 parent 4b27d10 commit 57925af
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions application/sources/document_part.cc
Original file line number Diff line number Diff line change
Expand Up @@ -225,5 +225,6 @@ void Document::Part::copyAttributes(const Part& other)
roughness = other.roughness;
deformUnified = other.deformUnified;
smoothCutoffDegrees = other.smoothCutoffDegrees;
colorImageId = other.colorImageId;
hollowThickness = other.hollowThickness;
}
5 changes: 5 additions & 0 deletions dust3d/mesh/stitch_mesh_builder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ const std::vector<std::vector<size_t>>& StitchMeshBuilder::generatedFaces() cons
return m_generatedFaces;
}

const std::vector<std::vector<Vector2>>& StitchMeshBuilder::generatedFaceUvs() const
{
return m_generatedFaceUvs;
}

void StitchMeshBuilder::interpolateSplinesToHaveEqualSizeOfNodesExceptClosingSplines()
{
std::vector<Spline> interpolatedSplines = m_splines;
Expand Down
2 changes: 2 additions & 0 deletions dust3d/mesh/stitch_mesh_builder.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class StitchMeshBuilder {
void build();
const std::vector<Vector3>& generatedVertices() const;
const std::vector<std::vector<size_t>>& generatedFaces() const;
const std::vector<std::vector<Vector2>>& generatedFaceUvs() const;
const std::vector<Spline>& splines() const;

private:
Expand All @@ -54,6 +55,7 @@ class StitchMeshBuilder {
std::vector<StitchingPoint> m_generatedStitchingPoints;
std::vector<Vector3> m_generatedVertices;
std::vector<std::vector<size_t>> m_generatedFaces;
std::vector<std::vector<Vector2>> m_generatedFaceUvs;
std::vector<Vector3> m_generatedNormals;
size_t m_targetSegments = 0;

Expand Down

0 comments on commit 57925af

Please sign in to comment.