21 #ifdef _MSC_VER // Microsoft Visual C++ -- warning level 4
22 #pragma warning( disable : 4996) // function was declared deprecated(strcpy, localtime, etc.)
43 , describe_points(aComment)
51 , describe_points(aComment)
69 , describe_points(aComment)
77 , describe_points(aComment)
86 , describe_points(aComment)
103 , point_coordinates()
104 , describe_points(aComment)
111 , point_coordinates()
112 , describe_points(aComment)
120 , point_coordinates()
121 , describe_points(aComment)
130 , point_coordinates(other.point_coordinates)
131 , describe_points(other.describe_points)
165 throw QhullError(10062,
"Qhull error: can not set PointCoordinates dimension to %d", i);
168 if(currentDimension!=0 && i!=currentDimension){
169 throw QhullError(10063,
"Qhull error: can not change PointCoordinates dimension (from %d to %d)", currentDimension, i);
193 if(coordinatesCount<=0){
221 if(
c==
'-' || isdigit(
c)){
222 throw QhullError(10028,
"Qhull argument error: comments can not start with a number or minus, %s", 0, 0, 0.0, s.c_str());
235 in >> ws >> inDimension >> ws;
239 getline(in, remainder);
240 throw QhullError(10005,
"Qhull error: input did not start with dimension or count -- %s", 0, 0, 0, remainder.c_str());
242 char c= (char)in.peek();
243 if(
c!=
'-' && !isdigit(
c)){
251 getline(in, remainder);
252 throw QhullError(10009,
"Qhull error: input did not start with dimension and count -- %d %s", inDimension, 0, 0, remainder.c_str());
255 if(
c!=
'-' && !isdigit(
c)){
259 if(inCount<inDimension){
260 std::swap(inCount, inDimension);
264 countT coordinatesCount= 0;
271 getline(in, remainder);
272 throw QhullError(10008,
"Qhull error: failed to read coordinate %d of point %d\n %s", coordinatesCount % inDimension, coordinatesCount/inDimension, 0, remainder.c_str());
278 if(coordinatesCount != inCount*inDimension){
279 if(coordinatesCount%inDimension==0){
280 throw QhullError(10006,
"Qhull error: expected %d %d-d PointCoordinates but read %i PointCoordinates",
int(inCount), inDimension, 0.0,
int(coordinatesCount/inDimension));
282 throw QhullError(10012,
"Qhull error: expected %d %d-d PointCoordinates but read %i PointCoordinates plus %f extra coordinates", inCount, inDimension,
float(coordinatesCount%inDimension), coordinatesCount/inDimension);
310 if(i<0 || n>coordinatesCount){
311 throw QhullError(10061,
"Qhull error: point_coordinates is too short (%d) for point %d", coordinatesCount, i);
334 os << dimension << endl;
336 os << dimension <<
" " << comment << endl;
340 for(
countT i=0; i<count; i++){
341 for(
int j=0; j<dimension; j++){