Correa 1
C++ library with Python bindings to analyse the shape of simple closed curves in R^2
Loading...
Searching...
No Matches
2DShape.h File Reference
#include <iostream>
#include <iomanip>
#include <sstream>
#include <string>
#include <cstring>
#include <stdlib.h>
#include <fstream>
#include <cmath>
#include <ctime>
#include <unistd.h>
#include <cstdlib>
#include <limits>
#include <assert.h>
#include "InOut.h"
#include "PolygonBuilder.h"
#include "Polygon.h"
#include "Ellipse.h"
#include "PH0.h"
#include "Curvature.h"
#include "Component.h"

Macros

#define NUM_THREADS   32
 

Functions

bool parse_args (int argc, char **argv, std::string *INFILE, bool *verbose)
 Parse command-line arguments for 2DShape.
 

Variables

int threadids [NUM_THREADS]
 
pthread_t threads [NUM_THREADS]
 

Detailed Description

Author
Patrice Koehl
Yossi Bokor Bleile
Date
April 2023
Version
1

Function Documentation

◆ parse_args()

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.

Parameters
argcArgument count from main()
argvArgument vector from main()
[out]infilePath to input polygon file (set by -i flag)
[out]verboseEnable verbose output (set by -v or –verbose flag, default: false)
Returns
true if arguments were parsed successfully, false otherwise