Changeset 1125 for cpp/frams/model/geometry
- Timestamp:
- 04/11/21 02:09:28 (4 years ago)
- File:
-
- 1 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) 1999-202 0Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2021 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
Note: See TracChangeset
for help on using the changeset viewer.