//----------------------------------------------------------------------------- // Torque Game Engine // Copyright (C) GarageGames.com, Inc. //----------------------------------------------------------------------------- #include "math/mSplinePatch.h" //****************************************************************************** // Spline control points //****************************************************************************** SplCtrlPts::SplCtrlPts() { } //------------------------------------------------------------------------------ // Destructor //------------------------------------------------------------------------------ SplCtrlPts::~SplCtrlPts() { } //------------------------------------------------------------------------------ // Get point //------------------------------------------------------------------------------ const Point3F * SplCtrlPts::getPoint( U32 pointNum ) { return &mPoints[pointNum]; } //------------------------------------------------------------------------------ // Set point //------------------------------------------------------------------------------ void SplCtrlPts::setPoint( Point3F &point, U32 pointNum ) { mPoints[pointNum] = point; } //------------------------------------------------------------------------------ // Add point //------------------------------------------------------------------------------ void SplCtrlPts::addPoint( Point3F &point ) { mPoints.push_back( point ); } //------------------------------------------------------------------------------ // Submit control points //------------------------------------------------------------------------------ void SplCtrlPts::submitPoints( Point3F *pts, U32 num ) { mPoints.clear(); for( int i=0; i