PathEngine home previous: iPathEngine::saveFaceVertexMesh()next: iPathEngine::setRandomSeed()
Contents, API Reference, Interfaces, iPathEngine, setPathPoolParameters

iPathEngine::setPathPoolParameters()

Description

Controls PathEngine's path caching mechanism.

Syntax

void setPathPoolParameters(int32_t pathsPooled, int32_t pointsPerPath);

Parameters

pathsPooled The size of the path pool.
pointsPerPath The number of points to reserve space for per path.

Remarks

The path pool is designed to make it possible to avoid any dynamic allocations for paths taking place during normal usage.
This method provides control over the parameters of the pool.

As long as no more than paths_pooled paths are in use at any one time and as long as none of those paths are longer than points_per_path, no memory allocations for paths will be made.

The default settings are 40 paths and 40 points per path.

C# Mapping

void setPathPoolParameters(int pathsPooled, int pointsPerPath);

Java Mapping

void setPathPoolParameters(int pathsPooled, int pointsPerPath);

Documentation for PathEngine release 6.04 - Copyright © 2002-2024 PathEnginenext: iPathEngine::setRandomSeed()