/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/ |
H A D | mesh_util.cpp | 100 vector<Math::Vec3>& normals; member 108 vector<Math::Vec3>& normals = geometry.normals; in GenerateCubeGeometry() local 113 normals.reserve(countof(CUBE_INDICES)); in GenerateCubeGeometry() 130 normals.insert(normals.end(), 3u, normal); in GenerateCubeGeometry() 148 vector<Math::Vec3>& normals = geometry.normals; in GenerateSphereGeometry() local 156 normals.reserve(maxVertexCount); in GenerateSphereGeometry() 175 normals in GenerateSphereGeometry() 199 vector<Math::Vec3>& normals = geometry.normals; GenerateConeCap() local 238 vector<Math::Vec3>& normals = geometry.normals; GenerateConeGeometry() local 310 vector<Math::Vec3>& normals = geometry.normals; GenerateTorusGeometry() local 367 CalculateTangentImpl(const array_view<const IndexType>& indices, const array_view<const Math::Vec3>& positions, const array_view<const Math::Vec3>& normals, const array_view<const Math::Vec2>& uvs, array_view<Math::Vec4>& outTangents) CalculateTangentImpl() argument 426 CalculateTangents(const array_view<const uint32_t>& indices, const array_view<const Math::Vec3>& positions, const array_view<const Math::Vec3>& normals, const array_view<const Math::Vec2>& uvs, array_view<Math::Vec4> outTangents) CalculateTangents() argument 433 CalculateTangents(const array_view<const uint16_t>& indices, const array_view<const Math::Vec3>& positions, const array_view<const Math::Vec3>& normals, const array_view<const Math::Vec2>& uvs, array_view<Math::Vec4> outTangents) CalculateTangents() argument 440 CalculateTangents(const array_view<const uint8_t>& indices, const array_view<const Math::Vec3>& positions, const array_view<const Math::Vec3>& normals, const array_view<const Math::Vec2>& uvs, array_view<Math::Vec4> outTangents) CalculateTangents() argument 530 vector<Math::Vec3> normals; GenerateSphereMesh() local 566 vector<Math::Vec3> normals; GenerateConeMesh() local 602 vector<Math::Vec3> normals; GenerateTorusMesh() local 638 vector<Math::Vec3> normals; GenerateCubeMesh() local [all...] |
H A D | mesh_util.h | 72 const BASE_NS::array_view<const BASE_NS::Math::Vec3>& normals, 77 const BASE_NS::array_view<const BASE_NS::Math::Vec3>& normals, 82 const BASE_NS::array_view<const BASE_NS::Math::Vec3>& normals,
|
H A D | mesh_builder.h | 45 void SetVertexData(size_t submeshIndex, const DataBuffer& positions, const DataBuffer& normals,
|
H A D | mesh_builder.cpp | 889 // Mesh without indices will have flat normals in GenerateDefaultNormals() 900 // With indexed data flat normals would require duplicating shared vertices. Instead calculate smooth normals. in GenerateDefaultNormals() 926 const IMeshBuilder::DataBuffer& normals, const IMeshBuilder::DataBuffer& uvs, uint32_t vertexCount) in GenerateDefaultTangents() 935 auto norView = array_view(reinterpret_cast<const Math::Vec3*>(normals.buffer.data()), vertexCount); in GenerateDefaultTangents() 1098 void MeshBuilder::SetVertexData(size_t submeshIndex, const DataBuffer& positions, const DataBuffer& normals, in SetVertexData() argument 1119 if (normals.buffer.empty() || generateTangents) { in SetVertexData() 1131 if (!normals.buffer.empty()) { in SetVertexData() 1133 WriteData(normals, submesh, MeshComponent::Submesh::DM_VB_NOR, acc.offset, acc.byteSize, buffer); in SetVertexData() 1140 Fill(dst, normals, submeshDes in SetVertexData() 924 GenerateDefaultTangents(IMeshBuilder::DataBuffer& tangents, vector<uint8_t>& generatedTangents, const IMeshBuilder::DataBuffer& indices, const IMeshBuilder::DataBuffer& positions, const IMeshBuilder::DataBuffer& normals, const IMeshBuilder::DataBuffer& uvs, uint32_t vertexCount) GenerateDefaultTangents() argument [all...] |
/foundation/distributeddatamgr/relational_store/test/native/appdatafwk/unittest/ |
H A D | serializable_test.cpp | 68 std::vector<Normal> normals{ Normal(), Normal() }; 74 SetValue(node[GET_NAME(normals)], normals); 82 GetValue(node, GET_NAME(normals), normals); 90 return normals == normalEx.normals && count == normalEx.count && name == normalEx.name; in operator ==() 157 normalEx.normals = { Normal() }; in HWTEST_F()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/test/ |
H A D | serializable_test.cpp | 67 std::vector<Normal> normals {Normal(), Normal()}; 73 SetValue(node[GET_NAME(normals)], normals); 81 GetValue(node, GET_NAME(normals), normals); 89 return normals == normalEx.normals && count == normalEx.count && name == normalEx.name; in operator ==() 162 normalEx.normals = {Normal()}; in HWTEST_F() 182 normalEx.normals = { Normal() }; in HWTEST_F() 229 normalEx.normals in HWTEST_F() [all...] |
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/include/scene_plugin/interface/ |
H A D | mesh_arrays.h | 24 BASE_NS::vector<BASE_NS::Math::Vec3> normals; // optional, will be generated if empty member
|
/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/util/ |
H A D | intf_mesh_builder.h | 109 * @param normals Normal data (3 * vertexCount values), this parameter is required. 115 virtual void SetVertexData(size_t submeshIndex, const DataBuffer& positions, const DataBuffer& normals, 151 * @param baseNormals Initial vertex normals (base pose). 155 * @param targetNormals Morph target vertex normals (delta offsets from base vertex, total size of array is
|
/foundation/graphic/graphic_3d/lume/Lume_3D/src/gltf/ |
H A D | gltf2_importer.cpp | 550 GLTF2::GLTFLoadDataResult& normals, array_view<GLTF2::GLTFLoadDataResult> texcoords, in LoadPrimitiveAttributeData() 570 normals = move(loadDataResult); in LoadPrimitiveAttributeData() 726 // If material has normal map assigned, then always make sure that we have normals. in CreatePrimitiveImportInfo() 810 const IMeshBuilder::DataBuffer normals = fillDataBuffer(normal); in ProcessPrimitives() local 816 result.meshBuilder->SetVertexData(primitiveIndex, positions, normals, texcoords0, texcoords1, tangents, colors); in ProcessPrimitives() 854 primitiveIndex, positions, normals, tangents, targetPositions, targetNormals, targetTangents); in ProcessPrimitives() 549 LoadPrimitiveAttributeData(const GLTF2::MeshPrimitive& primitive, GLTF2::GLTFLoadDataResult& positions, GLTF2::GLTFLoadDataResult& normals, array_view<GLTF2::GLTFLoadDataResult> texcoords, GLTF2::GLTFLoadDataResult& tangents, GLTF2::GLTFLoadDataResult& joints, GLTF2::GLTFLoadDataResult& weights, GLTF2::GLTFLoadDataResult& colors, const uint32_t& flags) LoadPrimitiveAttributeData() argument
|
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/ |
H A D | scene_holder.cpp | 2470 FillData<BASE_NS::Math::Vec3>(geometry->normals), FillData<BASE_NS::Math::Vec2>(geometry->uvs), in CreateMeshFromArrays()
|