PathEngine home previous: iMesh::loadPath()next: iMesh::loadUnobstructedSpaceFor()
Contents, API Reference, Interfaces, iMesh, loadPathfindPreprocessFor

iMesh::loadPathfindPreprocessFor()

Description

Loads pathfind preprocess from persistent storage.

Syntax

void loadPathfindPreprocessFor(const iShape& shape, char const * data_Buffer, uint32_t data_BufferEntries);

Parameters

shape The shape for which preprocess should be loaded.
data_Buffer, data_BufferEntries (See Passing Arrays.) The data buffer to load from.

Requirements

The shape must be identical to the shape for which the preprocess was originally saved.

Unobstructed space data must be present for this shape, and identical to the unobstructed space data against which the preprocess was originally generated.

Pathfind preprocess must not already be present for this shape on this mesh.

Remarks

The buffer passed in must contain data previously saved out by iMesh::savePathfindPreprocessFor().

This method can be called where you would previously have called iMesh::generatePathfindPreprocessFor(), to save time generating preprocess.

The structure of PathEngine's pathfind preproces may be changed between releases.
iPathEngine::pathfindPreprocessVersionIsCompatible() can be used to check whether preprocess saved out of an older release can be loaded into the current release.

C# Mapping

void loadPathfindPreprocessFor(Shape shape, byte[] data);

Documentation for PathEngine release 6.04 - Copyright © 2002-2024 PathEnginenext: iMesh::loadUnobstructedSpaceFor()