Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/mesh.cpp
| Show First 20 Lines • Show All 129 Lines • ▼ Show 20 Lines | NODE_DEFINE(Mesh) | ||||
| SOCKET_INT_ARRAY(triangles, "Triangles", array<int>()); | SOCKET_INT_ARRAY(triangles, "Triangles", array<int>()); | ||||
| SOCKET_POINT_ARRAY(verts, "Vertices", array<float3>()); | SOCKET_POINT_ARRAY(verts, "Vertices", array<float3>()); | ||||
| SOCKET_INT_ARRAY(shader, "Shader", array<int>()); | SOCKET_INT_ARRAY(shader, "Shader", array<int>()); | ||||
| SOCKET_BOOLEAN_ARRAY(smooth, "Smooth", array<bool>()); | SOCKET_BOOLEAN_ARRAY(smooth, "Smooth", array<bool>()); | ||||
| return type; | return type; | ||||
| } | } | ||||
| Mesh::Mesh() : Geometry(node_type, Geometry::MESH), subd_attributes(this, ATTR_PRIM_SUBD) | Mesh::Mesh(const NodeType *node_type_, Type geom_type_) | ||||
| : Geometry(node_type_, geom_type_), subd_attributes(this, ATTR_PRIM_SUBD) | |||||
| { | { | ||||
| vert_offset = 0; | vert_offset = 0; | ||||
| patch_offset = 0; | patch_offset = 0; | ||||
| face_offset = 0; | face_offset = 0; | ||||
| corner_offset = 0; | corner_offset = 0; | ||||
| num_subd_verts = 0; | num_subd_verts = 0; | ||||
| volume_clipping = 0.001f; | |||||
| volume_step_size = 0.0f; | |||||
| volume_object_space = false; | |||||
| num_ngons = 0; | num_ngons = 0; | ||||
| subdivision_type = SUBDIVISION_NONE; | subdivision_type = SUBDIVISION_NONE; | ||||
| subd_params = NULL; | subd_params = NULL; | ||||
| patch_table = NULL; | patch_table = NULL; | ||||
| } | } | ||||
| Mesh::Mesh() : Mesh(node_type, Geometry::MESH) | |||||
| { | |||||
| } | |||||
| Mesh::~Mesh() | Mesh::~Mesh() | ||||
| { | { | ||||
| delete patch_table; | delete patch_table; | ||||
| delete subd_params; | delete subd_params; | ||||
| } | } | ||||
| void Mesh::resize_mesh(int numverts, int numtris) | void Mesh::resize_mesh(int numverts, int numtris) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 518 Lines • Show Last 20 Lines | |||||