Ignore:
Timestamp:
04/24/17 18:18:44 (8 years ago)
Author:
Maciej Komosinski
Message:

FramScript?'s ModelGeometr? converts and caches the input model so geometry calculation functions do not have to convert the model on each call

File:
1 edited

Legend:

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

    r658 r661  
    7474        if (m != NULL)
    7575        {
     76                if (m->getShapeType() == Model::SHAPE_BALL_AND_STICK)
     77                        {
     78                        Model *converted = new Model;
     79                        converted->open();
     80                        converted->buildUsingSolidShapeTypes(*m, Part::SHAPE_CYLINDER, 0.2);
     81                        converted->close();
     82                        m=converted;
     83                        }
    7684                ModelGeometry *mg = new ModelGeometry((ModelObj*)m);
    7785                mg->density = density;
Note: See TracChangeset for help on using the changeset viewer.