VrmlData_ErrorStatus aStatus;
if (VrmlData_Node::OK(aStatus, VrmlData_Scene::ReadLine(theBuffer))) {
char * endptr;
- aResult = strtod (theBuffer.LinePtr, &endptr);
+ aResult = Strtod (theBuffer.LinePtr, &endptr);
if (endptr == theBuffer.LinePtr)
aStatus = VrmlData_NumericInputError;
else if (isOnlyPositive && aResult < 0.001*Precision::Confusion())
if (!VrmlData_Node::OK(aStatus, VrmlData_Scene::ReadLine(theBuffer)))
break;
char * endptr;
- aVal[i] = strtod (theBuffer.LinePtr, &endptr);
+ aVal[i] = Strtod (theBuffer.LinePtr, &endptr);
if (endptr == theBuffer.LinePtr) {
aStatus = VrmlData_NumericInputError;
break;
if (!VrmlData_Node::OK(aStatus, VrmlData_Scene::ReadLine(theBuffer)))
break;
char * endptr;
- aVal[i] = strtod (theBuffer.LinePtr, &endptr);
+ aVal[i] = Strtod (theBuffer.LinePtr, &endptr);
if (endptr == theBuffer.LinePtr) {
aStatus = VrmlData_NumericInputError;
break;
const Standard_Integer * arrVal = theArrIndex[iBlock]+1;
switch (nVal) {
case 1:
- sprintf (buf, "%d,", arrVal[0]);
+ Sprintf (buf, "%d,", arrVal[0]);
break;
case 2:
- sprintf (buf, "%d,%d,", arrVal[0], arrVal[1]);
+ Sprintf (buf, "%d,%d,", arrVal[0], arrVal[1]);
break;
case 3:
- sprintf (buf, "%d,%d,%d,", arrVal[0], arrVal[1], arrVal[2]);
+ Sprintf (buf, "%d,%d,%d,", arrVal[0], arrVal[1], arrVal[2]);
break;
case 4:
- sprintf (buf, "%d,%d,%d,%d,",
+ Sprintf (buf, "%d,%d,%d,%d,",
arrVal[0], arrVal[1], arrVal[2], arrVal[3]);
break;
default:
if (nVal > 0) {
char * ptr = &buf[0];
for (Standard_Integer i = 0; i < nVal; i++) {
- sprintf (ptr, "%d,", arrVal[i]);
+ Sprintf (ptr, "%d,", arrVal[i]);
ptr = strchr (ptr, ',') + 1;
if ((ptr - &buf[0]) > (ptrdiff_t)aLineLimit) {
WriteLine(buf);
char buf[240];
if (IsDummyWrite() == Standard_False)
if (isApplyScale && myLinearScale > Precision::Confusion())
- sprintf (buf, "%.12g %.12g %.12g%s", theXYZ.X() / myLinearScale,
+ Sprintf (buf, "%.12g %.12g %.12g%s", theXYZ.X() / myLinearScale,
theXYZ.Y() / myLinearScale, theXYZ.Z() / myLinearScale,
thePostfix ? thePostfix : "");
else
- sprintf (buf, "%.12g %.12g %.12g%s", theXYZ.X(), theXYZ.Y(), theXYZ.Z(),
+ Sprintf (buf, "%.12g %.12g %.12g%s", theXYZ.X(), theXYZ.Y(), theXYZ.Z(),
thePostfix ? thePostfix : "");
return WriteLine (buf);
}
Handle(VrmlData_UnknownNode) bidNode = new VrmlData_UnknownNode;
char buf[32];
do {
- sprintf (buf, "_%d",
+ Sprintf (buf, "_%d",
++const_cast<Standard_Integer&>(myAutoNameCounter));
bidNode->myName = &buf[0];
} while (myNamedNodes.Contains (bidNode));
const Handle(VrmlData_Group) aGroup =
Handle(VrmlData_Group)::DownCast (theNode);
char buf[64];
- sprintf (buf, "Group (%s)",
+ Sprintf (buf, "Group (%s)",
aGroup->IsTransform() ? "Transform" : "Group");
dumpNodeHeader (theStream, theIndent, buf, theNode->Name());
if (theIndent.IsEmpty() == Standard_False) {
const Standard_Size nCoord = aNode->Coordinates()->Length();
const Standard_Size nPoly = aNode->Polygons (ppDummy);
char buf[64];
- sprintf (buf, "IndexedFaceSet (%d vertices, %d polygons)", nCoord, nPoly);
+ Sprintf (buf, "IndexedFaceSet (%d vertices, %d polygons)", nCoord, nPoly);
dumpNodeHeader (theStream, theIndent, buf, theNode->Name());
} else if (theNode->IsKind(STANDARD_TYPE(VrmlData_IndexedLineSet))) {
const Handle(VrmlData_IndexedLineSet) aNode =
const Standard_Size nCoord = aNode->Coordinates()->Length();
const Standard_Size nPoly = aNode->Polygons (ppDummy);
char buf[64];
- sprintf (buf, "IndexedLineSet (%d vertices, %d polygons)", nCoord, nPoly);
+ Sprintf (buf, "IndexedLineSet (%d vertices, %d polygons)", nCoord, nPoly);
dumpNodeHeader (theStream, theIndent, buf, theNode->Name());
} else if (theNode->IsKind(STANDARD_TYPE(VrmlData_Material))) {
// const Handle(VrmlData_Material) aMaterial =
const Handle(VrmlData_UnknownNode) anUnknown =
Handle(VrmlData_UnknownNode)::DownCast (theNode);
char buf[64];
- sprintf (buf, "Unknown (%s)", anUnknown->GetTitle().ToCString());
+ Sprintf (buf, "Unknown (%s)", anUnknown->GetTitle().ToCString());
dumpNodeHeader (theStream, theIndent, buf, theNode->Name());
}
}