VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
generateOffsetRoute.h File Reference

Go to the source code of this file.

Functions

DT_DLL_vrfutil bool generateOffsetRoute (const std::vector< DtVector > &routeVertices, const DtVector &bodyOffset, const DtVector &downDirection, bool createConnectingArc, double distanceBetweenPointsAlongArc, std::vector< DtVector > &offsetRoute)
 
DT_DLL_vrfutil std::vector
< DtVector
simplifyRoute (const std::vector< DtVector > &route, const Coordinate_System *localCS, double nearDistance=1.0)
 

Function Documentation

DT_DLL_vrfutil bool generateOffsetRoute ( const std::vector< DtVector > &  routeVertices,
const DtVector bodyOffset,
const DtVector downDirection,
bool  createConnectingArc,
double  distanceBetweenPointsAlongArc,
std::vector< DtVector > &  offsetRoute 
)

DtGenerateOffsetRoute:

This function generates a route parallel to a given route at a fixed offset. It is called by the DtAggregateMoveAlongController to generate routes used for moving along routes in formation.

DT_DLL_vrfutil std::vector<DtVector> simplifyRoute ( const std::vector< DtVector > &  route,
const Coordinate_System localCS,
double  nearDistance = 1.0 
)

Generate a new route vector that has close vertices removed. That is, if vertex i+1 is within nearDistance meters of vertex i, then i+1 is omitted. The first and last points of the original route are always in the new route.


Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)