MCPcopy Create free account
hub / github.com/assimp/assimp / Add

Method Add

code/Common/SGSpatialSort.cpp:59–66  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

57
58// ------------------------------------------------------------------------------------------------
59void SGSpatialSort::Add(const aiVector3D& vPosition, unsigned int index,
60 unsigned int smoothingGroup)
61{
62 // store position by index and distance
63 float distance = vPosition * mPlaneNormal;
64 mPositions.emplace_back( index, vPosition,
65 distance, smoothingGroup);
66}
67// ------------------------------------------------------------------------------------------------
68void SGSpatialSort::Prepare()
69{

Callers 7

ImportCommonMetadataMethod · 0.45
AddNodeMetaDataFunction · 0.45
ParseExtensionsFunction · 0.45
ImportNodeMethod · 0.45
ImportCommonMetadataMethod · 0.45
ComputeNormalsMethod · 0.45
ReadFileMethod · 0.45

Calls 1

emplace_backMethod · 0.80

Tested by

no test coverage detected