Ignore:
Timestamp:
04/11/21 02:09:28 (4 years ago)
Author:
Maciej Komosinski
Message:

Cosmetic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/model/geometry/geometryutils.cpp

    r1056 r1125  
    11// This file is a part of Framsticks SDK.  http://www.framsticks.com/
    2 // Copyright (C) 1999-2020  Maciej Komosinski and Szymon Ulatowski.
     2// Copyright (C) 1999-2021  Maciej Komosinski and Szymon Ulatowski.
    33// See LICENSE.txt for details.
    44
    55#include "geometryutils.h"
    66#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
    710
    811double GeometryUtils::pointPosition(const int pointIndex, const int numberOfPoints)
     
    429432
    430433    part->p = Pt3D(markerLocation);
    431     part->scale = Pt3D(0.05);
     434    part->scale = Pt3D(POINT_AS_BALL_SCALE);
    432435    part->vcolor = Pt3D(1.0, 1.0, 0.0);
    433436
    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)
    435438}
    436439
Note: See TracChangeset for help on using the changeset viewer.