Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion include/generator/BezierPatch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,22 @@ class BezierPatch : public utils::WavefrontOBJ {
float stringToFloat(std::string str);
glm::vec3 stringToVector(const std::string &str);
std::vector<int> stringToArray(const std::string &str);

glm::mat4 preComputePatchMatrix(const std::vector<glm::vec3> &patchPoints, int coordinate);
glm::vec3 evaluateBezierSurface(const glm::mat4 &mx,
const glm::mat4 &my,
const glm::mat4 &mz,
float u,
float v);
glm::vec3 evaluateBezierSurfaceDu(const glm::mat4 &mx,
const glm::mat4 &my,
const glm::mat4 &mz,
float u,
float v);
glm::vec3 evaluateBezierSurfaceDv(const glm::mat4 &mx,
const glm::mat4 &my,
const glm::mat4 &mz,
float u,
float v);
};

}
2 changes: 1 addition & 1 deletion include/generator/figures/Cylinder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace generator::figures {

class Cylinder : public utils::WavefrontOBJ {
public:
Cylinder(float radius, float height, int slices, int stacks);
Cylinder(float radius, float height, int slices, int stacks, bool multiTextured = false);
};

}
4 changes: 1 addition & 3 deletions include/utils/WavefrontOBJ.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ class WavefrontOBJ {
std::vector<uint32_t>> // Indices
getIndexedVertices() const;

// TODO - Mariana, please make generateNormals private when Sphere.cpp doesn't need it anymore

protected:
private:
void generateNormals();
};

Expand Down
Loading