Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This kind of extensions load geometry just before the render starts. They´re useful to decrease the size of the scene file and even to create loaders for new file formats. This class is defined in mx_geometryextension.h. 

Code Block
class CgeometryLoaderExtension : public CbaseExtension
{
public:
    virtual bool loadMesh( Cmaxwell::Cobject& meshToLoad ) = 0;
    
    virtual bool getBoundingBox( Cpoint& min, Cpoint& max ) 
    {
        return false;
    };
    
    virtual bool getProxyDisplayPoints( const dword& percent, const dword& maxPoints, dword& nPoints, float*& points )
    {
        return false;    
    };
    virtual bool getProxyDisplayLines( const dword& percent, const dword& maxLines, dword& nPoints, float*& points, dword& nLines, dword*& pointsPerLine )
    {
        return false;
    }
    virtual bool getProxyDisplayFaces( const dword& percent, const dword& maxFaces, dword& nPoints, float*& points, dword& nFaces, dword*& faces )
    {
        return false;
    }
};

...