Overture
Version 25
|
#include <TrimmedMapping.h>
Static Public Attributes | |
static real | defaultFarthestDistanceNearCurve |
static real | defaultMinAngleForTriangulation =-1. |
static real | defaultElementDensityToleranceForTriangulation =.05 |
static real | defaultMaximumAreaForTriangulation =0. |
Static Public Attributes inherited from Mapping | |
static int | useInitialGuessForInverse =TRUE |
static int | debug =0 |
static FILE * | debugFile =NULL |
static FILE * | pDebugFile =NULL |
static const real | bogus =10. |
Additional Inherited Members | |
Static Public Member Functions inherited from Mapping | |
static void | openDebugFiles () |
static void | closeDebugFiles () |
static real | epsilon () |
static void | setMinimumNumberOfDistributedGhostLines (int numGhost) |
static int | getGridMinAndMax (const realArray &u, const Range &R1, const Range &R2, const Range &R3, real uMin[3], real uMax[3], bool local=false) |
static Mapping * | makeMapping (const aString &mappingClassName) |
static MappingLinkedList & | staticMapList () |
Protected Member Functions inherited from Mapping | |
int | buildMappingParametersDialog (DialogData &dialog) |
int | getMappingParametersOption (const aString &answer, DialogData &dialog, GenericGraphicsInterface &gi) |
: Look for a change to one of the mapping parameters. | |
int | updateMappingParametersDialog (DialogData &dialog) |
void | initializePartition () |
int | mappingHasChanged () |
void | setGridIsValid () |
void | setDefaultMappingBounds (const mappingSpace ms, Bound mappingBound[3][2]) |
void | setDefaultCoordinateSystemBounds (const coordinateSystem cs, Bound csBound[3][2]) |
int | validSide (const int side) const |
int | validAxis (const int axis) const |
void | mappingError (const aString &subName, const int side, const int axis) const |
Static Protected Attributes inherited from Mapping | |
static int | defaultNumberOfGhostPoints =0 |
static int | minimumNumberOfDistributedGhostLines =1 |
TrimmedMapping::TrimmedMapping | ( | Mapping & | surface, |
Mapping * | outerCurve = NULL , |
||
const int & | numberOfInnerCurves = 0 , |
||
Mapping ** | innerCurve = NULL |
||
) |
References constructOuterBoundaryCurve(), Mapping::debug, ReferenceCounting::decrementReferenceCount(), getClassName(), Mapping::getClassName(), Mapping::getName(), ReferenceCounting::incrementReferenceCount(), invalidateTrimming(), Mapping::mappingName, NULL, setCurves(), Mapping::setName(), setup(), and surface.
TrimmedMapping::TrimmedMapping | ( | const TrimmedMapping & | map, |
const CopyType | copyType = DEEP |
||
) |
TrimmedMapping::~TrimmedMapping | ( | ) |
References Mapping::debug, ReferenceCounting::decrementReferenceCount(), destroy(), NULL, and triangulation.
bool TrimmedMapping::addTrimCurve | ( | Mapping * | trimCurve | ) |
References c, ReferenceCounting::decrementReferenceCount(), ReferenceCounting::incrementReferenceCount(), initializeTrimCurves(), invalidateTrimming(), NULL, setUnInitialized(), triangulation, and trimmingIsValid().
Referenced by deleteTrimCurve(), and update().
int TrimmedMapping::assembleSubCurves | ( | int & | currentCurve, |
GenericGraphicsInterface & | gi, | ||
NurbsMapping & | trimCurve, | ||
NurbsMapping & | newCurve, | ||
int & | numberOfAssembledCurves, | ||
NurbsMapping **& | assemblyCurves, | ||
MouseSelectMode & | mouseMode, | ||
bool & | curveRebuilt, | ||
bool & | plotCurve | ||
) |
References NurbsMapping::addSubCurve(), aString, c, GenericGraphicsInterface::createMessageDialog(), errorDialog, fabs(), ReferenceCounting::getGlobalID(), NurbsMapping::isSubCurveHidden(), NurbsMapping::merge(), nothing, NULL, NurbsMapping::numberOfSubCurves(), NurbsMapping::numberOfSubCurvesInList(), GenericGraphicsInterface::outputString(), q, reportTrimCurveInfo(), NurbsMapping::subCurveFromList(), NurbsMapping::toggleSubCurveVisibility(), and verifyTrimCurve().
Referenced by editNurbsTrimCurve().
|
virtual |
Reimplemented from Mapping.
References assert, axis1, axis2, Mapping::base, Mapping::bogus, Mapping::bound, c, Mapping::computeMap, Mapping::computeMapDerivative, TMcurves::curveDist(), TMcurves::curvestart(), TMcurves::curvestop(), Mapping::debug, distanceToBoundary, Mapping::domainDimension, farthestDistanceNearCurve, findClosestCurve(), getCPU(), Mapping::getGridDimensions(), Mapping::getIndex(), ia, initializeQuadTree(), insideOrOutside(), TMquad::inThisSquare(), Mapping::inverseMap(), MappingParameters::mask, min(), NULL, Mapping::outside(), quadTreeMesh, r, R, TMquad::squareItsIn(), surface, TMquad::the_centerX(), TMquad::the_centerY(), TMquad::the_curves(), TMquad::the_dx(), TMquad::the_inside(), timeForSeg0, timeForSeg1, timeForUntrimmedInverse, TRUE, and upToDate.
bool TrimmedMapping::curveGoesThrough | ( | const TMquad & | square, |
const int & | c, | ||
int & | segstart, | ||
int & | segstop | ||
) | const |
References c, fabs(), max(), and min().
Referenced by curveGoesThrough(), and TMquad::remake().
bool TrimmedMapping::curveGoesThrough | ( | const TMquad & | square, |
const int & | c | ||
) | const |
References curveGoesThrough().
bool TrimmedMapping::deleteTrimCurve | ( | int | curveToDelete | ) |
Referenced by update().
bool TrimmedMapping::deleteTrimCurve | ( | int | numberOfCurvesToDelete, |
int * | curvesToDelete | ||
) |
int TrimmedMapping::destroy | ( | ) |
References ReferenceCounting::decrementReferenceCount(), NULL, quadTreeMesh, rCurve, surface, triangulation, and trimmingCurveArcLength.
Referenced by setCurves(), and ~TrimmedMapping().
int TrimmedMapping::editNurbsTrimCurve | ( | NurbsMapping & | trimCurve, |
MappingInformation & | mapInfo | ||
) |
References SelectionInfo::active, DialogData::addRadioBox(), NurbsMapping::addSubCurve(), Mapping::approximateGlobalInverse, assembleSubCurves(), assert, aString, axis1, ApproximateGlobalInverse::binarySearchOverBoundary(), c, GenericGraphicsInterface::createMessageDialog(), curveAssembly, GraphicsParameters::curveLineWidth, Mapping::debug, ReferenceCounting::decrementReferenceCount(), End, endpointMove, GenericGraphicsInterface::erase(), errorDialog, fabs(), GraphicsParameters::get(), GenericGraphicsInterface::getAnswer(), GenericGraphicsInterface::getColourName(), GenericGraphicsInterface::getCurrentWindow(), ReferenceCounting::getGlobalID(), Mapping::getGridDimensions(), GraphicsParameters::getMappingColour(), Mapping::getName(), GenericGraphicsInterface::getPlotTheAxes(), DialogData::getRadioBox(), DialogData::getTextValue(), GI_MAPPING_COLOUR, GI_PLOT_END_POINTS_ON_CURVES, GI_PLOT_GRID_POINTS_ON_CURVES, GI_PLOT_THE_OBJECT_AND_EXIT, GI_TOP_LABEL, GI_USE_PLOT_BOUNDS_OR_LARGER, MappingInformation::graphXInterface, hideCurve, ReferenceCounting::incrementReferenceCount(), GenericGraphicsInterface::initView(), GenericGraphicsInterface::inputString(), IntersectionMapping::intersectCurves(), Mapping::inverseMap(), Mapping::inverseMapS(), NurbsMapping::isSubCurveHidden(), NurbsMapping::isSubCurveOriginal(), NurbsMapping::line(), lineSegmentJoin, NurbsMapping::map(), Mapping::mappingName, NurbsMapping::mapS(), max(), NurbsMapping::merge(), NurbsMapping::moveEndpoint(), nothing, SelectionInfo::nSelect, NULL, numberOfMouseModes, NurbsMapping::numberOfSubCurves(), NurbsMapping::numberOfSubCurvesInList(), GenericGraphicsInterface::outputString(), GenericGraphicsInterface::outputToCommandFile(), PlotIt::plot(), NurbsMapping::plot(), GenericGraphicsInterface::plotPoints(), GenericGraphicsInterface::popGUI(), pow(), printF(), DialogData::pushButtonWidget, GenericGraphicsInterface::pushGUI(), q, r, SelectionInfo::r, DialogData::radioBoxWidget, REAL_MAX, NurbsMapping::reparameterize(), reportTrimCurveInfo(), s, GenericGraphicsInterface::savePickCommands(), SC, SelectionInfo::selection, GraphicsParameters::set(), RadioBox::setCurrentChoice(), DialogData::setExitCommand(), Mapping::setGridDimensions(), GenericGraphicsInterface::setPlotTheAxes(), DialogData::setPushButtons(), RadioBox::setSensitive(), DialogData::setSensitive(), DialogData::setTextBoxes(), DialogData::setToggleButtons(), DialogData::setToggleState(), DialogData::setWindowTitle(), NurbsMapping::shift(), snapCurvesToIntersection(), split, NurbsMapping::split(), splitAtIntersection, sPrintF(), SQR, sScanF(), Start, GenericGraphicsInterface::stopReadingCommandFile(), NurbsMapping::subCurve(), NurbsMapping::subCurveFromList(), NurbsMapping::toggleSubCurveVisibility(), translate, TRUE, NurbsMapping::update(), updateCurve, verifyTrimCurve(), warningDialog, SelectionInfo::x, and X.
Referenced by editTrimCurve().
int TrimmedMapping::editTrimCurve | ( | Mapping & | trimCurve, |
MappingInformation & | mapInfo | ||
) |
References assert, editNurbsTrimCurve(), Mapping::getClassName(), MappingInformation::graphXInterface, NULL, setUnInitialized(), Mapping::update(), and validateTrimming().
Referenced by update().
int TrimmedMapping::findClosestCurve | ( | const realArray & | x, |
intArray & | cMin, | ||
realArray & | rC, | ||
realArray & | xC, | ||
realArray & | dist, | ||
const int & | approximate = true |
||
) |
References Mapping::approximateGlobalInverse, assert, axis1, ApproximateGlobalInverse::binarySearchOverBoundary(), ApproximateGlobalInverse::bogus, c, callsOfFindClosestCurve, callsOfFindClosestCurve_all, Mapping::debug, Mapping::domainDimension, getCPU(), ApproximateGlobalInverse::getGrid(), Mapping::getGridDimensions(), getLocalArrayWithGhostBoundaries(), initializeQuadTree(), Mapping::inverseMapCS(), Mapping::inverseMapS(), Mapping::mapCS(), Mapping::mapS(), max(), r, R, REAL_MAX, s, SQR, timeForFindClosestCurve, and upToDate.
Referenced by basicInverse(), CompositeSurface::findOutwardTangent(), map(), mapGrid(), and update().
int TrimmedMapping::findDistanceToACurve | ( | const realArray & | x, |
IntegerArray & | cMin, | ||
realArray & | dist, | ||
const real & | delta | ||
) |
References Mapping::approximateGlobalInverse, assert, ApproximateGlobalInverse::binarySearchOverBoundary(), Mapping::canInvert, Mapping::getBasicInverseOption(), getCPU(), ApproximateGlobalInverse::getGrid(), Mapping::grid, i2, initializeQuadTree(), Mapping::inverseMapC(), Mapping::mapC(), r, R, REAL_MAX, SQR, timeForFindDistanceToACurve, TRUE, and upToDate.
Referenced by insideOrOutside().
|
virtual |
Reimplemented from Mapping.
References allNurbs, assert, aString, className, Mapping::debug, dRmin, dSmin, GenericDataBase::find(), GenericDataBase::get(), UnstructuredMapping::get(), Mapping::get(), GenericDataBase::getDistributed(), TMquad::getStatics(), Mapping::grid, ReferenceCounting::incrementReferenceCount(), initializeQuadTree(), Mapping::makeMapping(), max(), NULL, projectedMask, quadTreeMesh, rBound, GenericDataBase::setMode(), smallestLengthScale, GenericDataBase::streamInputMode, surface, TMquadRoot::TMget(), triangulation, trimmingCurveArcLength, upToDate, validTrimming, and GenericDataBase::virtualConstructor().
|
inlinevirtual |
Reimplemented from Mapping.
References className.
Referenced by HyperbolicMapping::createCurveOnSurface(), getNumberOfBoundarySubCurves(), initializeTrimCurves(), operator=(), refineTriangulation(), TrimmedMapping(), update(), and validateTrimming().
|
virtual |
Reimplemented from Mapping.
References Mapping::debug, Mapping::getGrid(), Mapping::grid, Mapping::gridIsValid(), MappingParameters::mask, and projectedMask.
Mapping * TrimmedMapping::getInnerCurve | ( | const int & | curveNumber | ) |
Referenced by buildEdgeCurves(), and PlotIt::renderTrimmedNurbsByMode().
int TrimmedMapping::getNumberOfBoundaryCurves | ( | ) |
int TrimmedMapping::getNumberOfBoundarySubCurves | ( | ) |
References c, and getClassName().
int TrimmedMapping::getNumberOfInnerCurves | ( | ) |
Referenced by buildEdgeCurves(), PlotIt::renderTrimmedNurbsByMode(), and TMcurves::TMcurves().
Mapping * TrimmedMapping::getOuterCurve | ( | ) |
Referenced by buildEdgeCurves(), and PlotIt::renderTrimmedNurbsByMode().
UnstructuredMapping & TrimmedMapping::getTriangulation | ( | ) |
int TrimmedMapping::getTriangulationParameters | ( | real & | area, |
real & | minAngle, | ||
real & | elementDensity | ||
) | const |
Referenced by CompositeSurface::refineSubSurface().
bool TrimmedMapping::hasTriangulation | ( | ) | const |
References NULL, and triangulation.
Referenced by CompositeSurface::update().
void TrimmedMapping::initializeQuadTree | ( | bool | buildQuadTree = true | ) |
References Mapping::approximateGlobalInverse, assert, axis1, axis2, c, Mapping::debug, TMquad::divide(), Mapping::domainDimension, dRmin, dSmin, TMquad::dxMin2Curve, TMquad::dxMinNormal, End, farthestDistanceNearCurve, getCPU(), Mapping::getGrid(), Mapping::getGridDimensions(), Mapping::getIsPeriodic(), Mapping::getName(), ApproximateGlobalInverse::initialize(), Mapping::mappingName, max(), TMquad::maxSquares(), min(), TMquadRoot::minQuadTreeMeshDx, TMquad::minSquareWidth(), quadTreeMesh, rBound, rCurve, SC, setBounds(), Mapping::setGridDimensions(), TMquadRoot::sizeOfQuadTreeMesh, Start, timeForCreateTrimmedSurface, timeForFindClosestCurve, timeForFindDistanceToACurve, timeForInsideOrOutside, upToDate, and validTrimming.
Referenced by basicInverse(), findClosestCurve(), findDistanceToACurve(), get(), map(), mapGrid(), and update().
void TrimmedMapping::initializeTrimCurves | ( | ) |
References Mapping::debug, dRmin, dSmin, fabs(), getAreaAndArcLength(), getClassName(), l1, l2, min(), Pi, smallestLengthScale, and trimmingCurveArcLength.
Referenced by addTrimCurve(), deleteTrimCurve(), setCurves(), and undoLastDelete().
int TrimmedMapping::insideOrOutside | ( | const realArray & | rr, |
const int & | c | ||
) |
References delta, findDistanceToACurve(), and insideOrOutside().
|
inline |
References validTrimming.
Referenced by addTrimCurve(), deleteTrimCurve(), setCurves(), triangulate(), TrimmedMapping(), and update().
|
inline |
References allNurbs.
|
inline |
References upToDate.
Reimplemented from Mapping.
References className, and TrimmedMapping().
|
inline |
References validTrimming.
Referenced by update().
|
virtual |
Reimplemented from Mapping.
References Overture::abort(), assert, axis1, axis2, Mapping::base, Mapping::bound, c, Mapping::computeMap, Mapping::computeMapDerivative, TMcurves::curvestart(), TMcurves::curvestop(), Mapping::debug, Mapping::display(), distanceToBoundary, Mapping::domainDimension, findClosestCurve(), Mapping::getGridDimensions(), Mapping::getIndex(), initializeQuadTree(), insideOrOutside(), TMquad::inThisSquare(), MappingParameters::isNull, Mapping::map(), MappingParameters::mask, min(), NULL, printF(), quadTreeMesh, r, TMquad::squareItsIn(), surface, TMquad::the_curves(), TMquad::the_inside(), and upToDate.
Referenced by HyperbolicMapping::createCurveOnSurface(), refineTriangulation(), triangulate(), and TrimmedMapping().
|
virtual |
Reimplemented from Mapping.
References assert, axis1, axis2, Mapping::base, Mapping::bound, c, Mapping::computeMap, Mapping::computeMapDerivative, TMcurves::curvestart(), TMcurves::curvestop(), Mapping::debug, Mapping::display(), Mapping::domainDimension, findClosestCurve(), getCPU(), Mapping::getGridDimensions(), Mapping::getIndex(), i2, initializeQuadTree(), insideOrOutside(), TMquad::inThisSquare(), MappingParameters::isNull, Mapping::map(), Mapping::mapGrid(), MappingParameters::mask, min(), NULL, projectedMask, quadTreeMesh, r, R, Mapping::rangeDimension, TMquad::squareItsIn(), surface, TMquad::the_curves(), TMquad::the_inside(), timeForFindClosestCurve, timeForInsideOrOutside, timeForMapGrid, timeForSeg0, timeForSeg1, and upToDate.
TrimmedMapping & TrimmedMapping::operator= | ( | const TrimmedMapping & | X0 | ) |
|
virtual |
Reimplemented from Mapping.
References aString, className, GenericDataBase::create(), NULL, GenericDataBase::put(), Mapping::put(), GenericDataBase::putDistributed(), GenericDataBase::setMode(), GenericDataBase::streamOutputMode, and GenericDataBase::virtualConstructor().
References aString, axis1, curveTooNarrow(), Mapping::getClassName(), ReferenceCounting::getGlobalID(), Mapping::getIsPeriodic(), NurbsMapping::isSubCurveOriginal(), Mapping::notPeriodic, NurbsMapping::numberOfSubCurves(), printF(), and sPrintF().
Referenced by assembleSubCurves(), editNurbsTrimCurve(), and reportTrimmingInfo().
aString TrimmedMapping::reportTrimmingInfo | ( | ) |
References aString, c, Mapping::getName(), Mapping::mappingName, reportTrimCurveInfo(), sPrintF(), trimmingIsValid(), and validateTrimming().
Referenced by update().
void TrimmedMapping::setBounds | ( | bool | assignBoundsFromTriangulation = true | ) |
Set the approximate bounds on the mapping, used by plotting routines etc.
/param assignBoundsFromTriangulation (input): if true assign the bounds from the triangulation.
References Mapping::getRangeBound(), Mapping::getRangeDimension(), getTriangulation(), Mapping::rangeDimension, Mapping::setRangeBound(), surface, and trimmingIsValid().
Referenced by initializeQuadTree(), and setCurves().
int TrimmedMapping::setCurves | ( | Mapping & | surface_, |
Mapping * | outerCurve_ = NULL , |
||
const int & | numberOfInnerCurves_ = 0 , |
||
Mapping ** | innerCurve_ = NULL |
||
) |
References allNurbs, defaultFarthestDistanceNearCurve, destroy(), Mapping::domainDimension, dRmin, dSmin, farthestDistanceNearCurve, Mapping::functionPeriodic, Mapping::getBoundaryCondition(), Mapping::getClassName(), Mapping::getDomainDimension(), Mapping::getDomainSpace(), Mapping::getGridDimensions(), Mapping::getIsPeriodic(), Mapping::getName(), Mapping::getRangeDimension(), Mapping::getRangeSpace(), Mapping::getTypeOfCoordinateSingularity(), ReferenceCounting::incrementReferenceCount(), initializeTrimCurves(), invalidateTrimming(), Mapping::mappingHasChanged(), Mapping::mappingName, NULL, rBound, Mapping::setBoundaryCondition(), setBounds(), Mapping::setDomainDimension(), Mapping::setDomainSpace(), Mapping::setGridDimensions(), Mapping::setIsPeriodic(), Mapping::setName(), Mapping::setRangeDimension(), Mapping::setRangeSpace(), Mapping::setTypeOfCoordinateSingularity(), setUnInitialized(), smallestLengthScale, surface, ReferenceCounting::uncountedReferencesMayExist(), and validateTrimming().
Referenced by MappingsFromCAD::readSomeNurbs(), TrimmedMapping(), and update().
int TrimmedMapping::setElementDensityToleranceForTriangulation | ( | real | elementDensity = .05 | ) |
References elementDensityTolerance, and Mapping::mappingHasChanged().
Referenced by CompositeSurface::refineSubSurface().
int TrimmedMapping::setMaxAreaForTriangulation | ( | real | area = .1 | ) |
References Mapping::mappingHasChanged(), and maxArea.
Referenced by CompositeSurface::refineSubSurface().
int TrimmedMapping::setMinAngleForTriangulation | ( | real | minAngle = 20. | ) |
References Mapping::mappingHasChanged(), and minAngleForTriangulation.
void TrimmedMapping::setUnInitialized | ( | ) |
References ReferenceCounting::decrementReferenceCount(), NULL, triangulation, and upToDate.
Referenced by addTrimCurve(), deleteTrimCurve(), editTrimCurve(), MappingsFromCAD::readSomeNurbs(), setCurves(), setup(), undoLastDelete(), and update().
int TrimmedMapping::setup | ( | ) |
References allNurbs, callsOfFindClosestCurve, callsOfFindClosestCurve_all, Mapping::canInvert, className, defaultFarthestDistanceNearCurve, elementDensityTolerance, farthestDistanceNearCurve, Mapping::mappingHasChanged(), Mapping::mappingName, maxArea, minAngleForTriangulation, NULL, quadTreeMesh, rBound, rCurve, Mapping::setBasicInverseOption(), Mapping::setName(), setUnInitialized(), surface, timeForCreateTrimmedSurface, timeForFindClosestCurve, timeForFindDistanceToACurve, timeForInsideOrOutside, timeForMapGrid, timeForSeg0, timeForSeg1, timeForUntrimmedInverse, triangulation, trimmingCurveArcLength, and validTrimming.
Referenced by TrimmedMapping().
int TrimmedMapping::snapCurvesToIntersection | ( | GenericGraphicsInterface & | gi, |
NurbsMapping & | trimCurve, | ||
int & | curve1, | ||
int & | curve2, | ||
int | curve1End, | ||
int | curve2End, | ||
const real * | xSelect, | ||
const real * | c1click | ||
) |
References NurbsMapping::addSubCurve(), GenericGraphicsInterface::createMessageDialog(), End, errorDialog, fabs(), IntersectionMapping::intersectCurves(), Mapping::inverseMap(), NurbsMapping::map(), max(), min(), NurbsMapping::moveEndpoint(), pow(), r, REAL_MAX, REAL_MIN, Start, NurbsMapping::subCurveFromList(), and NurbsMapping::toggleSubCurveVisibility().
Referenced by editNurbsTrimCurve().
void TrimmedMapping::triangulate | ( | MappingInformation & | mapInfo | ) |
References assert, aString, GenericGraphicsInterface::erase(), GenericGraphicsInterface::getMenuItem(), GI_PLOT_THE_OBJECT_AND_EXIT, GI_PLOT_UNS_EDGES, MappingInformation::graphXInterface, GenericGraphicsInterface::inputString(), maxArea, NULL, PlotIt::plot(), GraphicsParameters::set(), sScanF(), triangulate(), triangulation, and TRUE.
Referenced by CompositeSurface::refineSubSurface().
void TrimmedMapping::triangulate | ( | ) |
References assert, axis1, c, Mapping::debug, defaultElementDensityToleranceForTriangulation, defaultMaximumAreaForTriangulation, defaultMinAngleForTriangulation, delta, Mapping::determineResolution(), Mapping::display(), Mapping::domainDimension, dr, elementDensityTolerance, End, fabs(), Mapping::functionPeriodic, TriangleWrapper::generate(), TriangleWrapper::generateElementList(), Mapping::getArcLength(), Mapping::getClassName(), getCPU(), Mapping::getGrid(), Mapping::getGridDimensions(), Mapping::getIsPeriodic(), NurbsMapping::getKnots(), Mapping::getName(), TriangleWrapper::getNeighbours(), TriangleWrapper::getNumberOfBoundaryEdges(), TriangleWrapper::getNumberOfEdges(), TriangleWrapper::getParameters(), TriangleWrapper::getPoints(), Mapping::getRangeBound(), i2, ReferenceCounting::incrementReferenceCount(), TriangleWrapper::initialize(), innerCurve, invalidateTrimming(), Mapping::isPeriodic, knot, map(), Mapping::map(), NurbsMapping::map(), Mapping::mappingName, mask, max(), maxArea, min(), minAngleForTriangulation, NULL, numberOfInnerCurves, NurbsMapping::numberOfSubCurves(), r, R, ra, Mapping::rangeDimension, REAL_EPSILON, REAL_MIN, TriangleWrapperParameters::saveNeighbourList(), TriangleWrapperParameters::saveVoronoi(), scaleNodes(), TriangleWrapper::setHoles(), TriangleWrapperParameters::setMaximumArea(), TriangleWrapperParameters::setMinimumAngle(), Mapping::setName(), UnstructuredMapping::setNodesElementsAndNeighbours(), TriangleWrapperParameters::setQuietMode(), Mapping::setRangeBound(), SQR, SQRT, Start, NurbsMapping::subCurve(), surface, triangulation, and trimmingCurveArcLength.
Referenced by getTriangulation(), triangulate(), and update().
|
inline |
bool TrimmedMapping::undoLastDelete | ( | ) |
References c, ReferenceCounting::decrementReferenceCount(), initializeTrimCurves(), NULL, setUnInitialized(), triangulation, and validateTrimming().
Referenced by update().
|
inline |
References surface.
Referenced by CompositeSurface::project(), CompositeSurface::refineSubSurface(), PlotIt::renderTrimmedNurbsByMode(), and update().
|
virtual |
initialize the Mapping parameters dialog box
Reimplemented from Mapping.
References TMquad::accumulateCenterPoints(), SelectionInfo::active, NurbsMapping::addSubCurve(), addTrimCurve(), assert, aString, axis1, c, callsOfFindClosestCurve, callsOfFindClosestCurve_all, MappingInformation::command, MappingInformation::commandOption, constructOuterBoundaryCurve(), GenericGraphicsInterface::createMessageDialog(), ReferenceCounting::decrementReferenceCount(), deleteTrimCurve(), Mapping::display(), GenericGraphicsInterface::displayHelp(), Mapping::domainDimension, editTrimCurve(), elementDensityTolerance, GenericGraphicsInterface::erase(), errorDialog, fabs(), FALSE, findClosestCurve(), GraphicsParameters::get(), GenericGraphicsInterface::getAnswer(), getClassName(), Mapping::getClassName(), GenericGraphicsInterface::getColourName(), getCPU(), GenericGraphicsInterface::getCurrentWindow(), GUIState::getDialogSibling(), MappingRC::getDomainDimension(), Mapping::getDomainDimension(), ReferenceCounting::getGlobalID(), Mapping::getGridDimensions(), ListOfMappingRC::getLength(), GraphicsParameters::getMappingColour(), GenericGraphicsInterface::getMenuItem(), MappingRC::getName(), Mapping::getName(), DialogData::getRadioBox(), Mapping::getRangeBound(), MappingRC::getRangeDimension(), Mapping::getRangeDimension(), GI_LABEL_GRIDS_AND_BOUNDARIES, GI_MAPPING_COLOUR, GI_PLOT_END_POINTS_ON_CURVES, GI_PLOT_GRID_POINTS_ON_CURVES, GI_PLOT_LINES_ON_MAPPING_BOUNDARIES, GI_PLOT_MAPPING_EDGES, GI_PLOT_THE_OBJECT_AND_EXIT, GI_PLOT_UNS_BOUNDARY_EDGES, GI_PLOT_UNS_EDGES, GI_TOP_LABEL, MappingInformation::graphXInterface, Mapping::gridIsValid(), ReferenceCounting::incrementReferenceCount(), informationDialog, initializeQuadTree(), GenericGraphicsInterface::initView(), MappingInformation::interactive, MappingInformation::interface, invalidateTrimming(), Mapping::inverseMap(), Mapping::inverseMapC(), GenericGraphicsInterface::isGraphicsWindowOpen(), manuallyValidateTrimming(), Mapping::mappingHasChanged(), MappingInformation::mappingList, Mapping::mappingName, MappingRC::mapPointer, maxArea, SelectionInfo::nSelect, NULL, NurbsMapping::numberOfSubCurves(), NurbsMapping::numberOfSubCurvesInList(), GenericGraphicsInterface::outputString(), GenericGraphicsInterface::outputToCommandFile(), PlotIt::plot(), GenericGraphicsInterface::plotPoints(), GenericGraphicsInterface::popGUI(), pow(), printF(), DialogData::pushButtonWidget, GenericGraphicsInterface::pushGUI(), quadTreeMesh, r, R, Mapping::rangeDimension, MappingInformation::readOneCommand, reportTrimmingInfo(), s, GenericGraphicsInterface::savePickCommands(), SelectionInfo::selection, GraphicsParameters::set(), RadioBox::setCurrentChoice(), setCurves(), Mapping::setDomainDimension(), ReferenceCounting::setGlobalID(), Mapping::setGridDimensions(), Mapping::setRangeBound(), Mapping::setRangeDimension(), RadioBox::setSensitive(), DialogData::setSensitive(), DialogData::setToggleState(), setUnInitialized(), TMquadRoot::sizeOfQuadTreeMesh, sPrintF(), sScanF(), GenericGraphicsInterface::stopReadingCommandFile(), NurbsMapping::subCurve(), NurbsMapping::subCurveFromList(), surface, timeForFindClosestCurve, timeForInsideOrOutside, timeForSeg0, timeForSeg1, timeForUntrimmedInverse, DialogData::toggleButtonWidget, triangulate(), triangulation, trimmingIsValid(), TRUE, undoLastDelete(), untrimmedSurface(), Mapping::update(), Mapping::updateWithCommand(), validateTrimming(), and SelectionInfo::x.
Referenced by TrimmedMappingBuilder::buildTrimmedMapping().
int TrimmedMapping::validateTrimming | ( | ) |
References c, curveTooNarrow(), Mapping::debug, getClassName(), NurbsMapping::isSubCurveOriginal(), NurbsMapping::numberOfSubCurves(), printF(), and validTrimming.
Referenced by editTrimCurve(), reportTrimmingInfo(), setCurves(), undoLastDelete(), and update().
bool TrimmedMapping::verifyTrimCurve | ( | Mapping * | curve | ) |
References curveTooNarrow(), Mapping::getClassName(), NurbsMapping::isSubCurveOriginal(), NurbsMapping::numberOfSubCurves(), and printF().
Referenced by assembleSubCurves(), and editNurbsTrimCurve().
|
protected |
Referenced by get(), isAllNurbs(), setCurves(), and setup().
int TrimmedMapping::callsOfFindClosestCurve |
Referenced by findClosestCurve(), setup(), and update().
int TrimmedMapping::callsOfFindClosestCurve_all |
Referenced by findClosestCurve(), setup(), and update().
aString TrimmedMapping::className |
Referenced by get(), getClassName(), make(), operator=(), put(), setup(), and TrimmedMapping().
|
static |
Referenced by createMappings(), and triangulate().
|
static |
Referenced by setCurves(), and setup().
|
static |
Referenced by triangulate().
|
static |
Referenced by createMappings(), and triangulate().
realArray TrimmedMapping::distanceToBoundary |
Referenced by basicInverse(), map(), and CompositeSurface::oldProject().
|
protected |
Referenced by get(), initializeQuadTree(), initializeTrimCurves(), operator=(), and setCurves().
|
protected |
Referenced by get(), initializeQuadTree(), initializeTrimCurves(), operator=(), and setCurves().
real TrimmedMapping::elementDensityTolerance |
Referenced by setElementDensityToleranceForTriangulation(), setup(), triangulate(), and update().
real TrimmedMapping::farthestDistanceNearCurve |
Referenced by basicInverse(), TMquad::divide(), initializeQuadTree(), operator=(), setCurves(), and setup().
Mapping** TrimmedMapping::innerCurve |
Referenced by CompositeSurface::findOutwardTangent(), and triangulate().
real TrimmedMapping::maxArea |
Referenced by setMaxAreaForTriangulation(), setup(), triangulate(), and update().
real TrimmedMapping::minAngleForTriangulation |
Referenced by setMinAngleForTriangulation(), setup(), and triangulate().
int TrimmedMapping::numberOfInnerCurves |
Referenced by triangulate().
Mapping* TrimmedMapping::outerCurve |
Referenced by CompositeSurface::findOutwardTangent(), and PlotIt::plotSubSurfaceNormals().
TMquadRoot* TrimmedMapping::quadTreeMesh |
Referenced by basicInverse(), destroy(), get(), initializeQuadTree(), map(), mapGrid(), operator=(), setup(), and update().
real TrimmedMapping::rBound[3][2] |
Referenced by get(), initializeQuadTree(), operator=(), setCurves(), and setup().
realArray* TrimmedMapping::rCurve |
Referenced by destroy(), initializeQuadTree(), setup(), and TMcurves::TMcurves().
|
protected |
Referenced by get(), initializeTrimCurves(), operator=(), and setCurves().
Mapping* TrimmedMapping::surface |
Referenced by CompositeSurface::add(), basicInverse(), CompositeTopology::buildEdgeCurves(), buildEdgeCurves(), destroy(), get(), map(), mapGrid(), CompositeSurface::oldProject(), operator=(), PlotIt::plot(), MappingsFromCAD::readSomeNurbs(), setBounds(), setCurves(), setup(), triangulate(), TrimmedMapping(), untrimmedSurface(), and update().
real TrimmedMapping::timeForCreateTrimmedSurface |
Referenced by initializeQuadTree(), and setup().
real TrimmedMapping::timeForFindClosestCurve |
Referenced by findClosestCurve(), initializeQuadTree(), mapGrid(), setup(), and update().
real TrimmedMapping::timeForFindDistanceToACurve |
Referenced by findDistanceToACurve(), initializeQuadTree(), and setup().
real TrimmedMapping::timeForInsideOrOutside |
Referenced by initializeQuadTree(), insideOrOutside(), mapGrid(), setup(), and update().
real TrimmedMapping::timeForSeg0 |
Referenced by basicInverse(), mapGrid(), setup(), and update().
real TrimmedMapping::timeForSeg1 |
Referenced by basicInverse(), mapGrid(), setup(), and update().
real TrimmedMapping::timeForUntrimmedInverse |
Referenced by basicInverse(), setup(), and update().
UnstructuredMapping* TrimmedMapping::triangulation |
Referenced by addTrimCurve(), deleteTrimCurve(), destroy(), get(), getTriangulation(), hasTriangulation(), operator=(), setUnInitialized(), setup(), triangulate(), undoLastDelete(), update(), and ~TrimmedMapping().
|
protected |
Referenced by destroy(), get(), initializeTrimCurves(), setup(), and triangulate().
|
protected |
Referenced by basicInverse(), findClosestCurve(), findDistanceToACurve(), get(), initializeQuadTree(), isInitialized(), map(), mapGrid(), and setUnInitialized().
|
protected |
Referenced by get(), initializeQuadTree(), invalidateTrimming(), manuallyValidateTrimming(), setup(), trimmingIsValid(), and validateTrimming().