Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/mesh.h
| Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | |||||
| class AttributeRequest; | class AttributeRequest; | ||||
| struct SubdParams; | struct SubdParams; | ||||
| class DiagSplit; | class DiagSplit; | ||||
| struct PackedPatchTable; | struct PackedPatchTable; | ||||
| /* Mesh */ | /* Mesh */ | ||||
| class Mesh : public Geometry { | class Mesh : public Geometry { | ||||
| protected: | |||||
| Mesh(const NodeType *node_type_, Type geom_type_); | |||||
| public: | public: | ||||
| NODE_DECLARE | NODE_DECLARE | ||||
| /* Mesh Triangle */ | /* Mesh Triangle */ | ||||
| struct Triangle { | struct Triangle { | ||||
| int v[3]; | int v[3]; | ||||
| void bounds_grow(const float3 *verts, BoundBox &bounds) const; | void bounds_grow(const float3 *verts, BoundBox &bounds) const; | ||||
| ▲ Show 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | public: | ||||
| array<float3> verts; | array<float3> verts; | ||||
| array<int> shader; | array<int> shader; | ||||
| array<bool> smooth; | array<bool> smooth; | ||||
| /* used for storing patch info for subd triangles, only allocated if there are patches */ | /* used for storing patch info for subd triangles, only allocated if there are patches */ | ||||
| array<int> triangle_patch; /* must be < 0 for non subd triangles */ | array<int> triangle_patch; /* must be < 0 for non subd triangles */ | ||||
| array<float2> vert_patch_uv; | array<float2> vert_patch_uv; | ||||
| float volume_clipping; | |||||
| float volume_step_size; | |||||
| bool volume_object_space; | |||||
| array<SubdFace> subd_faces; | array<SubdFace> subd_faces; | ||||
| array<int> subd_face_corners; | array<int> subd_face_corners; | ||||
| int num_ngons; | int num_ngons; | ||||
| array<SubdEdgeCrease> subd_creases; | array<SubdEdgeCrease> subd_creases; | ||||
| SubdParams *subd_params; | SubdParams *subd_params; | ||||
| ▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines | |||||