7#include <opencv2/core.hpp>
33 Arch(
int width = 10,
int height = 10)
38 std::vector<cv::Vec3d> curve;
39 std::vector<cv::Vec3d> points;
45 for (
int w = 0; w < width; ++w) {
46 double t = w * M_PI / width;
47 c_point[0] = rad * cos(t);
48 c_point[1] = rad * sin(t);
50 curve.push_back(c_point);
53 for (
float z = 0; z < height; z += 1) {
54 for (
auto p_id = curve.begin(); p_id != curve.end(); ++p_id) {
60 for (
int i = 1; i < height; ++i) {
61 for (
int j = 1; j < width; ++j) {
Base class for shape generators.
void addVertex_(double x, double y, double z)
Add a new vertex to the shape.
void addCell_(int v1, int v2, int v3)
Add a new triangular face to the mesh from vertex IDs.
std::size_t orderedWidth_
std::size_t orderedHeight_
Shape and mesh primitives.