|
Correa 1
C++ library with Python bindings to analyse the shape of simple closed curves in R^2
|
extract infromation about a polygon More...
#include "2DShape.h"#include "InOut.h"#include "PolygonBuilder.h"#include "Polygon.h"#include "Ellipse.h"#include "PH0.h"#include "Curvature.h"#include "Component.h"Functions | |
| int | main (int argc, char **argv) |
| Main function for analyzing a single 2D shape. | |
| bool | parse_args (int argc, char **argv, std::string *infile, bool *verbose) |
| Parse command-line arguments for 2DShape. | |
extract infromation about a polygon
Given a polygon stored in a file, calculate the following information about the polygon: length, area, sphericity, maximum volume inscribed ellipse, minimum volume inscribing ellipse, least square ellipse, Willmore energy, and the dimension 0 persistence diagram with essential pairing of the essential 0-cycle and essential 1-cycle.
| int main | ( | int | argc, |
| char ** | argv ) |
Main function for analyzing a single 2D shape.
This program analyzes a single 2D polygon and computes various geometric and topological properties. The polygon is centered and scaled to a normalized range before analysis.
Computed properties include:
| argc | Number of command-line arguments |
| argv | Array of command-line argument strings |
| bool parse_args | ( | int | argc, |
| char ** | argv, | ||
| std::string * | infile, | ||
| bool * | verbose ) |
Parse command-line arguments for 2DShape.
Parses command-line arguments for the 2DShape program, extracting the input file path and verbose flag. This is the simplest version that analyzes a single polygon.
| argc | Argument count from main() | |
| argv | Argument vector from main() | |
| [out] | infile | Path to input polygon file (set by -i flag) |
| [out] | verbose | Enable verbose output (set by -v or –verbose flag, default: false) |