14 #ifndef EGGTRIANGLEFAN_H 15 #define EGGTRIANGLEFAN_H 34 virtual void write(std::ostream &out,
int indent_level)
const override;
38 virtual int get_num_lead_vertices()
const override;
39 virtual bool do_triangulate(
EggGroupNode *container)
const override;
45 static void init_type() {
46 EggCompositePrimitive::init_type();
48 EggCompositePrimitive::get_class_type());
51 return get_class_type();
53 virtual TypeHandle force_init_type()
override {
55 return get_class_type();
The base class for primitives such as triangle strips and triangle fans, which include several compon...
A base class for nodes in the hierarchy that are not leaf nodes.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A connected fan of triangles.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
virtual void apply_first_attribute()
Sets the first vertex of the triangle (or each component) to the primitive normal and/or color,...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.