/////////////////////////////////////////////////////////
void createAttractorOnFace(TopoDS_Shape GeomShape, std::string AttractorFunction, double defaultSize)
{
- double xa=0., ya=0., za=0.; // Coordinates of attractor point // todo: xa, ya, za must be explicitly initialized to avoid warning (see below)
+ double xa=0., ya=0., za=0.; // Coordinates of attractor point
double a, b; // Attractor parameter
double d = 0.;
bool createNode=false; // To create a node on attractor projection
}
// Get the (u,v) values of the attractor on the face
- projectionPoint myPoint = getProjectionPoint(TopoDS::Face(GeomShape),gp_Pnt(xa,ya,za)); // todo: xa, ya, za must be explicitly initialized to avoid warning (see above)
+ projectionPoint myPoint = getProjectionPoint(TopoDS::Face(GeomShape),gp_Pnt(xa,ya,za));
gp_XY uvPoint = myPoint.uv;
gp_XYZ xyzPoint = myPoint.xyz;
Standard_Real u0 = uvPoint.X();
//function : ClearEnforcedVertex
//=======================================================================
-bool BLSURFPlugin_Hypothesis::ClearEnforcedVertex(const TEntry& theFaceEntry, double x, double y, double z,
- const TEntry& theVertexEntry)
+bool BLSURFPlugin_Hypothesis::ClearEnforcedVertex(const TEntry& theFaceEntry,
+ double x, double y, double z,
+ const TEntry& theVertexEntry)
{
bool toNotify = false;
std::ostringstream msg;
isOK = static_cast<bool>(load >> option_or_sm);
if (isOK) {
- if ( (option_or_sm == "1")||(option_or_sm == "0") ) {
+ if (( option_or_sm == "1" ) || ( option_or_sm == "0" )) {
i = atoi(option_or_sm.c_str());
hasCADSurfOptions = true;
_phySizeRel = (bool) i;
// // TODO coder cette fonction (utilis??e pour savoir si la valeur a chang??
// // A finir pour le dump
// char* BLSURFPlugin_Hypothesis_i::GetClassAttractorEntry(const char* entry)
-//
// {
// ASSERT(myBaseImpl);
// try {
for ( int i = 0 ; atIt != attractors.end(); ++atIt, ++i ) {
string faceEntry = atIt->first;
string attEntry;
- double startSize=0., endSize=0., infDist=0., constDist=0.; // todo: startSize, endSize, infDist, constDist must be explicitly initialized to avoid warning (see below)
+ double startSize=0., endSize=0., infDist=0., constDist=0.;
if ( !atIt->second->Empty() ) {
attEntry = atIt->second->GetAttractorEntry();
std::vector<double> params = atIt->second->GetParameters();
result[i].startSize = startSize;
result[i].endSize = endSize;
result[i].infDist = infDist;
- result[i].constDist = constDist; // todo: startSize, endSize, infDist, constDist must be explicitly initialized to avoid warning (see above)
+ result[i].constDist = constDist;
}
return result._retn();
}