int main(int argc, char* argv[]) { // check command line args if (argc > 1) { fprintf(stderr, "usage: %s\n", argv[0]); exit(1); } // process the indexes on stdin char buff[BUFF_SIZE]; while (1) { // get an index from stdin if (!fgets(buff, BUFF_SIZE, stdin)) { if (feof(stdin)) break; else error("reading input H3 index from stdin"); } H3Index h3 = H3_EXPORT(stringToH3)(buff); GeoBoundary b; readBoundary(stdin, &b); t_assertBoundary(h3, &b); } }
// Construct from components starMesh::starMesh ( const fileName& prefix, const Time& rt, const scalar scaleFactor ) : casePrefix_(prefix), runTime_(rt), points_(0), cellShapes_(0), boundary_(0), patchTypes_(0), defaultFacesName_("defaultFaces"), defaultFacesType_(emptyPolyPatch::typeName), patchNames_(0), patchPhysicalTypes_(0), starPointLabelLookup_(0), starPointID_(0), starCellID_(0), starCellLabelLookup_(0), starCellPermutation_(0), cellFaces_(0), boundaryCellIDs_(0), boundaryCellFaceIDs_(0), meshFaces_(0), cellPolys_(0), nInternalFaces_(0), polyBoundaryPatchStartIndices_(0), pointCellsPtr_(NULL), couples_(0), isShapeMesh_(true) { readPoints(scaleFactor); readCells(); readBoundary(); fixCollapsedEdges(); readCouples(); if (couples_.size()) { createCoupleMatches(); } markBoundaryFaces(); mergeCoupleFacePoints(); purgeCellShapes(); collectBoundaryFaces(); }
// Construct from components sammMesh::sammMesh ( const fileName& prefix, const Time& rt, const scalar scaleFactor ) : casePrefix_(prefix), runTime_(rt), points_(0), cellShapes_(0), boundary_(0), patchTypes_(0), defaultFacesName_("defaultFaces"), defaultFacesType_(emptyPolyPatch::typeName), patchNames_(0), patchPhysicalTypes_(0), starPointLabelLookup_(0), starCellLabelLookup_(0), cellFaces_(0), meshFaces_(0), cellPolys_(0), nInternalFaces_(0), polyBoundaryPatchStartIndices_(0), pointCellsPtr_(NULL), isShapeMesh_(true) { // Fill in the lookup tables fillSammCellShapeTable(); fillSammAddressingTable(); readPoints(scaleFactor); readCells(); readBoundary(); fixCollapsedEdges(); readCouples(); // create boundary faces createBoundaryFaces(); // after all this is done do couples }