Changeset 1125 for cpp/frams/model
 Timestamp:
 04/11/21 02:09:28 (2 years ago)
 Location:
 cpp/frams/model
 Files:

 2 edited
Legend:
 Unmodified
 Added
 Removed

cpp/frams/model/geometry/geometryutils.cpp
r1056 r1125 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999202 0Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 19992021 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 5 5 #include "geometryutils.h" 6 6 #include <math.h> 7 8 #define POINT_AS_BALL_SCALE 0.05 //scale (i.e., size) of balls (Part::SHAPE_ELLIPSOID). This is only used when building a Model that visualizes sampling points in another Model. 9 7 10 8 11 double GeometryUtils::pointPosition(const int pointIndex, const int numberOfPoints) … … 429 432 430 433 part>p = Pt3D(markerLocation); 431 part>scale = Pt3D( 0.05);434 part>scale = Pt3D(POINT_AS_BALL_SCALE); 432 435 part>vcolor = Pt3D(1.0, 1.0, 0.0); 433 436 434 model.addNewJoint(anchor, part, Joint::SHAPE_FIXED); 437 model.addNewJoint(anchor, part, Joint::SHAPE_FIXED); //keep all Parts in the Model connected (just for Model validity) 435 438 } 436 439 
cpp/frams/model/similarity/measuredistribution.cpp
r1121 r1125 72 72 int samples_taken = samples_num; 73 73 74 //Check if total number of point pairs is smaller than samples number (just to avoid the calculation of the same stats for the same pairs of Parts)74 //Check if total number of point pairs is smaller than samples number (just to avoid the calculation of the same stats for the same pairs of points). 75 75 //This optimization turned out to have a minor effect, only present for very high simil_samples_num, and was not perfect anyway: 76 76 // samples are selected randomly so there are no guarantees that they will be repeated,
Note: See TracChangeset
for help on using the changeset viewer.