MCPcopy Create free account
hub / github.com/carbonengine/trinity / CreateGeometryRes

Method CreateGeometryRes

trinity/Resources/TriGrannyRes.cpp:1737–1752  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1735}
1736
1737Be::Result<std::string> TriGrannyRes::CreateGeometryRes( TriGeometryRes** result )
1738{
1739 TriGeometryResPtr p;
1740 p.CreateInstance();
1741
1742 if( !p )
1743 {
1744 return Be::Result<std::string>( "Couldn't create an instance of TriGeometryRes" );
1745 }
1746
1747 p->PrepareFromGrannyRes( this );
1748
1749 *result = p.Detach();
1750
1751 return Be::Result<std::string>();
1752}
1753
1754Be::Result<std::string> TriGrannyRes::BakeBlendshapeFromScript( unsigned int meshIx, const std::vector<float>& weights, TriGeometryRes* geom )
1755{

Callers

nothing calls this directly

Calls 3

CreateInstanceMethod · 0.80
PrepareFromGrannyResMethod · 0.80
DetachMethod · 0.80

Tested by

no test coverage detected