neuray API Programmer's Manual

isimple_mesh.h File Reference

Description

Scene element On_demand_mesh.

Code Example

isimple_mesh.h

‎/***************************************************************************************************
 * Copyright 2023 NVIDIA Corporation. All rights reserved.
 **************************************************************************************************/

#ifndef MI_NEURAYLIB_ISIMPLE_MESH_H
#define MI_NEURAYLIB_ISIMPLE_MESH_H

#include <mi/base/interface_declare.h>
#include <mi/neuraylib/typedefs.h>

namespace mi {

namespace neuraylib {























class ISimple_mesh :
    public base::Interface_declare<0xd678b434,0x675f,0x4d55,0x8f,0xed,0x50,0x34,0x1e,0x0b,0xa9,0xf2>
{
public:
    virtual Uint32 
               data_size() const = 0;

    virtual const Float32_3_struct* get_points() const = 0;

    virtual const Float32_3_struct* get_normals() const = 0;

    virtual Uint32 
               get_texture_dimension( Uint32 texture_space_id) const = 0;

    virtual const Float32* get_texture_coordinates( Uint32 texture_space_id) const = 0;

    virtual const Float32_3_struct* get_derivatives() const = 0;

    virtual Uint32 
               get_motion_vector_count() const = 0;

    virtual const Float32_3_struct* get_motion_vectors() const = 0;

    virtual Uint32 
               triangles_size() const = 0;

    virtual const Uint32_3_struct* get_triangles() const = 0;

    virtual bool has_unique_material() const = 0;

    virtual const Uint32* get_material_indices() const = 0;

    virtual Uint32 
               get_userdata_dimension( Uint32 userdata_id) const = 0;

    virtual const Float32* get_userdata( Uint32 userdata_id) const = 0;

    virtual const char* get_userdata_name( Uint32 userdata_id) const = 0;
};
 // end group mi_neuray_leaf_nodes

} // namespace neuraylib

} // namespace mi

#endif // MI_NEURAYLIB_ISIMPLE_MESH_H

Namespaces

namespace 
Common namespace for APIs of NVIDIA Advanced Rendering Center GmbH. More...
namespace 
Namespace for the neuray API. More...

Classes

class 
Interface representing the geometry of on-demand meshes. More...