- Timestamp:
- 12/06/23 03:29:15 (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/model/model.cpp
r1280 r1286 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-202 0Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2023 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 969 969 { 970 970 ret = 0; 971 logPrintf("Model", "internalCheck", LOG_ERROR, 972 "Delta joint cycle detected at Joint #%d%s", 973 i, nameForErrors().c_str()); 971 logPrintf("Model", "internalCheck", LOG_WARN, "A cycle of \"delta Joints\" found at Joint #%d%s", i, nameForErrors().c_str()); 974 972 } 975 973 j->resetDeltaMarkers(); … … 1006 1004 { 1007 1005 ret = 0; 1008 logPrintf("Model", "internalCheck", LOG_ ERROR, "Joint #%d too long (its length %g exceeds allowed %g)%s", i, j->d(), getMaxJoint().d.x, nameForErrors().c_str());1006 logPrintf("Model", "internalCheck", LOG_WARN, "Joint #%d too long (its length %g exceeds allowed %g)%s", i, j->d(), getMaxJoint().d.x, nameForErrors().c_str()); 1009 1007 } 1010 1008 else if (j->d() < getMinJoint().d.x) 1011 1009 { 1012 1010 ret = 0; 1013 logPrintf("Model", "internalCheck", LOG_ ERROR, "Joint #%d too short (its length %g is below allowed %g)%s", i, j->d(), getMinJoint().d.x, nameForErrors().c_str());1011 logPrintf("Model", "internalCheck", LOG_WARN, "Joint #%d too short (its length %g is below allowed %g)%s", i, j->d(), getMinJoint().d.x, nameForErrors().c_str()); 1014 1012 } 1015 1013 } … … 1018 1016 else 1019 1017 { 1020 logPrintf("Model", "internalCheck", LOG_ERROR, "Illegal part references in Joint #%d%s", i, nameForErrors().c_str());1021 1018 ret = 0; 1019 logPrintf("Model", "internalCheck", LOG_WARN, "Illegal Part references in Joint #%d%s", i, nameForErrors().c_str()); 1022 1020 } 1023 1021 if (shapetype != SHAPETYPE_ILLEGAL) … … 1026 1024 { 1027 1025 shapetype = SHAPETYPE_ILLEGAL; 1028 logPrintf("Model", "internalCheck", LOG_WARN, "Inconsistent joint shapes (mixed old and new shapes)%s", nameForErrors().c_str());1026 logPrintf("Model", "internalCheck", LOG_WARN, "Inconsistent Joint shapes (mixed ball-and-stick and solids shape types)%s", nameForErrors().c_str()); 1029 1027 } 1030 1028 } … … 1083 1081 if (!(p->flags & LINKFLAG)) 1084 1082 { 1085 logPrintf("Model", "internalCheck", LOG_ERROR, "Not all parts connected (eg. Part #0 and Part #%d)%s", i, nameForErrors().c_str());1086 1083 ret = 0; 1084 logPrintf("Model", "internalCheck", LOG_WARN, "Not all Parts connected (e.g., Part #0 and Part #%d)%s", i, nameForErrors().c_str()); 1087 1085 break; 1088 1086 } … … 1095 1093 if (j->p1_refno == j->p2_refno) 1096 1094 { 1097 logPrintf("Model", "internalCheck", LOG_ERROR, "Illegal self connection, Joint #%d%s", i, nameForErrors().c_str());1098 1095 ret = 0; 1096 logPrintf("Model", "internalCheck", LOG_WARN, "Part #%d connected to itself using Joint #%d%s", j->p1_refno, i, nameForErrors().c_str()); 1099 1097 break; 1100 1098 } … … 1105 1103 || ((j->p1_refno == j2->p2_refno) && (j->p2_refno == j2->p1_refno))) 1106 1104 { 1107 logPrintf("Model", "internalCheck", LOG_ERROR, "Illegal duplicate Joint #%d and Joint #%d%s", i, k, nameForErrors().c_str());1108 1105 ret = 0; 1106 logPrintf("Model", "internalCheck", LOG_WARN, "Two parallel Joints connect the same Parts: Joint #%d and Joint #%d%s", i, k, nameForErrors().c_str()); 1109 1107 break; 1110 1108 } … … 1117 1115 else if ((declared_shapetype != SHAPETYPE_UNKNOWN) && (declared_shapetype != shapetype)) 1118 1116 { 1119 logPrintf("Model", "internalCheck", LOG_ERROR, "Model shape type '%s' does not match the declared type '%s'", getShapeTypeName(shapetype), getShapeTypeName(declared_shapetype));1120 1117 ret = 0; 1118 logPrintf("Model", "internalCheck", LOG_WARN, "Model shape type '%s' does not match the declared type '%s'", getShapeTypeName(shapetype), getShapeTypeName(declared_shapetype)); 1121 1119 } 1122 1120
Note: See TracChangeset
for help on using the changeset viewer.