Class Polyhedron
Defined in File hex_polyhedron.h
Inheritance Relationships
Base Type
public Node3D
Derived Types
public sota::PrismPolyhedron(Class PrismPolyhedron)public sota::RidgeBasedPolyhedron(Class RidgeBasedPolyhedron)
Class Documentation
-
class Polyhedron : public Node3D
Subclassed by sota::PrismPolyhedron, sota::RidgeBasedPolyhedron
Public Functions
-
Polyhedron()
-
Polyhedron(const Polyhedron &other) = delete
-
Polyhedron(Polyhedron &&other) = delete
-
Polyhedron &operator=(Polyhedron &&rhs) = delete
-
void set_divisions(const int p_divisions)
-
int get_divisions() const
-
void set_patch_resolution(const int p_patch_resolution)
-
int get_patch_resolution() const
-
void set_biomes_noise(const Ref<FastNoiseLite> p_biomes_noise)
-
Ref<FastNoiseLite> get_biomes_noise() const
Protected Functions
-
virtual void configure_hexagon(PolygonWrapper &wrapper, Biome biome, int &id, Ref<ShaderMaterial> mat) = 0
-
virtual void configure_pentagon(PolygonWrapper &wrapper, Biome biome, int &id, Ref<ShaderMaterial> mat) = 0
-
virtual void process_cells() = 0
-
virtual void set_material_parameters(Ref<ShaderMaterial> mat) = 0
-
virtual void calculate_normals() = 0
-
void init()
-
template<typename T>
void process_ngons(std::vector<PolygonWrapper*> &ngons, float min_z, float max_z)
Protected Attributes
-
Ref<FastNoiseLite> _biomes_noise
-
std::vector<PolygonWrapper*> _hexagons
-
std::vector<PolygonWrapper*> _pentagons
Protected Static Functions
-
static void _bind_methods()
-
Polyhedron()