aboutsummaryrefslogtreecommitdiff
path: root/docs/_source/ext_import.txt
blob: 6916b83ade809d935f1ecb4bbc1725a366ca99d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*! \page pageextimport Importer (NvBlastExtImport)

This extension provides tools to import data from external formats and convert to a Blast&tm; asset.

Currently the only external data format handled is NvApexDestructibleAsset, handled by Nv::Blast::ApexImporter::ApexImportTool.

This tool supports two bond generation modes and can be configured by providing: 
\code
struct ApexImporterConfig
{
	enum InterfaceSearchMode { EXACT, FORCED, MODE_COUNT };
	InterfaceSearchMode infSearchMode;
}
\endcode

1) EXACT - Importer tries to find triangles from two chunks which lay in common surface. If such triangles are found, their intersections are considered as the interface.

2) FORCED - Bond creation is forced no matter how far chunks are from each other. Interface parameters are approximated.

Nv::Blast::ApexImporter::ApexImportTool can be initialized by providing ApexSDK and ModuleDestructible, or they can be created internally.

If ApexSDK and ModuleDestructible were provided, they are not freed when Nv::Blast::ApexImporter::~ApexImportTool() is called.
<br>
*/