Home
last modified time | relevance | path

Searched refs:face_count (Results 1 – 25 of 242) sorted by relevance

12345678910

/dports/emulators/mess/mame-mame0226/3rdparty/bgfx/3rdparty/meshoptimizer/src/
H A Dvcacheoptimizer.cpp33 size_t face_count = index_count / 3; in buildTriangleAdjacency() local
62 for (size_t i = 0; i < face_count; ++i) in buildTriangleAdjacency()
146 while (input_cursor < face_count) in getNextTriangleDeadEnd()
182 size_t face_count = index_count / 3; in meshopt_optimizeVertexCache() local
194 memset(emitted_flags, 0, face_count); in meshopt_optimizeVertexCache()
205 for (size_t i = 0; i < face_count; ++i) in meshopt_optimizeVertexCache()
226 assert(output_triangle < face_count); in meshopt_optimizeVertexCache()
337 assert(input_cursor == face_count); in meshopt_optimizeVertexCache()
338 assert(output_triangle == face_count); in meshopt_optimizeVertexCache()
362 size_t face_count = index_count / 3; in meshopt_optimizeVertexCacheFifo() local
[all …]
H A Dspatialorder.cpp152 size_t face_count = index_count / 3; in meshopt_spatialSortTriangles() local
157 float* centroids = allocator.allocate<float>(face_count * 3); in meshopt_spatialSortTriangles()
159 for (size_t i = 0; i < face_count; ++i) in meshopt_spatialSortTriangles()
173 unsigned int* remap = allocator.allocate<unsigned int>(face_count); in meshopt_spatialSortTriangles()
175 meshopt_spatialSortRemap(remap, centroids, face_count, sizeof(float) * 3); in meshopt_spatialSortTriangles()
185 for (size_t i = 0; i < face_count; ++i) in meshopt_spatialSortTriangles()
/dports/emulators/mame/mame-mame0226/3rdparty/bgfx/3rdparty/meshoptimizer/src/
H A Dvcacheoptimizer.cpp33 size_t face_count = index_count / 3; in buildTriangleAdjacency() local
62 for (size_t i = 0; i < face_count; ++i) in buildTriangleAdjacency()
146 while (input_cursor < face_count) in getNextTriangleDeadEnd()
182 size_t face_count = index_count / 3; in meshopt_optimizeVertexCache() local
194 memset(emitted_flags, 0, face_count); in meshopt_optimizeVertexCache()
205 for (size_t i = 0; i < face_count; ++i) in meshopt_optimizeVertexCache()
226 assert(output_triangle < face_count); in meshopt_optimizeVertexCache()
337 assert(input_cursor == face_count); in meshopt_optimizeVertexCache()
338 assert(output_triangle == face_count); in meshopt_optimizeVertexCache()
362 size_t face_count = index_count / 3; in meshopt_optimizeVertexCacheFifo() local
[all …]
H A Dspatialorder.cpp152 size_t face_count = index_count / 3; in meshopt_spatialSortTriangles() local
157 float* centroids = allocator.allocate<float>(face_count * 3); in meshopt_spatialSortTriangles()
159 for (size_t i = 0; i < face_count; ++i) in meshopt_spatialSortTriangles()
173 unsigned int* remap = allocator.allocate<unsigned int>(face_count); in meshopt_spatialSortTriangles()
175 meshopt_spatialSortRemap(remap, centroids, face_count, sizeof(float) * 3); in meshopt_spatialSortTriangles()
185 for (size_t i = 0; i < face_count; ++i) in meshopt_spatialSortTriangles()
/dports/graphics/appleseed/appleseed-2.1.0-beta/src/appleseed/foundation/mesh/
H A Dobjmeshfilewriter.cpp163 const size_t face_count = walker.get_face_count(); in write_faces() local
168 pretty_int(face_count).c_str(), in write_faces()
169 plural(face_count, "face").c_str()); in write_faces()
187 const size_t face_count = walker.get_face_count(); in write_faces_no_vn_no_vt() local
189 for (size_t face_index = 0; face_index < face_count; ++face_index) in write_faces_no_vn_no_vt()
209 const size_t face_count = walker.get_face_count(); in write_faces_vn_no_vt() local
211 for (size_t face_index = 0; face_index < face_count; ++face_index) in write_faces_vn_no_vt()
232 const size_t face_count = walker.get_face_count(); in write_faces_no_vn_vt() local
234 for (size_t face_index = 0; face_index < face_count; ++face_index) in write_faces_no_vn_vt()
255 const size_t face_count = walker.get_face_count(); in write_faces_vn_vt() local
[all …]
/dports/graphics/instant-meshes/instant-meshes-0.0-42-g4a083f4/src/
H A Dbatch.cpp26 int rosy, int posy, Float scale, int face_count, in batch_process() argument
72 if (scale < 0 && vertex_count < 0 && face_count < 0) { in batch_process()
80 face_count = stats.mSurfaceArea / face_area; in batch_process()
81 vertex_count = posy == 4 ? face_count : (face_count / 2); in batch_process()
82 } else if (face_count > 0) { in batch_process()
83 Float face_area = stats.mSurfaceArea / face_count; in batch_process()
84 vertex_count = posy == 4 ? face_count : (face_count / 2); in batch_process()
87 face_count = posy == 4 ? vertex_count : (vertex_count * 2); in batch_process()
88 Float face_area = stats.mSurfaceArea / face_count; in batch_process()
94 cout << " Face count = " << face_count << endl; in batch_process()
H A Dmain.cpp29 int rosy = 4, posy = 4, face_count = -1, vertex_count = -1; in main() local
98 face_count = str_to_int32_t(argv[i]); in main()
139 nConstraints += face_count > 0 ? 1 : 0; in main()
177 batch_process(args[0], batchOutput, rosy, posy, scale, face_count, in main()
205 scale, face_count, vertex_count, in main()
/dports/lang/spidermonkey60/firefox-60.9.0/servo/components/script/dom/
H A Dwebgltexture.rs42 face_count: Cell<u8>, field
62 face_count: Cell::new(0), in new_inherited()
109 let face_count = match target { in bind() localVariable
114 self.face_count.set(face_count); in bind()
316 debug_assert_eq!(self.face_count.get(), 6); in is_cube_complete()
326 for face in 0..self.face_count.get() { in is_cube_complete()
364 let pos = (level * self.face_count.get() as u32) + face as u32; in image_info_at_face()
369 for face in 0..self.face_count.get() { in set_image_infos_at_level()
375 debug_assert!(face < self.face_count.get()); in set_image_infos_at_level_and_face()
376 let pos = (level * self.face_count.get() as u32) + face as u32; in set_image_infos_at_level_and_face()
/dports/devel/godot/godot-3.2.3-stable/modules/csg/
H A Dcsg_shape.cpp284 Vector<int> face_count; in _update_shape() local
287 face_count.write[i] = 0; in _update_shape()
308 face_count.write[idx]++; in _update_shape()
937 smooth.resize(face_count); in _build_brush()
939 invert.resize(face_count); in _build_brush()
1026 if (face != face_count) { in _build_brush()
1140 smooth.resize(face_count); in _build_brush()
1142 invert.resize(face_count); in _build_brush()
1215 if (face != face_count) { in _build_brush()
1318 smooth.resize(face_count); in _build_brush()
[all …]
/dports/devel/godot-tools/godot-3.2.3-stable/modules/csg/
H A Dcsg_shape.cpp284 Vector<int> face_count; in _update_shape() local
287 face_count.write[i] = 0; in _update_shape()
308 face_count.write[idx]++; in _update_shape()
937 smooth.resize(face_count); in _build_brush()
939 invert.resize(face_count); in _build_brush()
1026 if (face != face_count) { in _build_brush()
1140 smooth.resize(face_count); in _build_brush()
1142 invert.resize(face_count); in _build_brush()
1215 if (face != face_count) { in _build_brush()
1318 smooth.resize(face_count); in _build_brush()
[all …]
/dports/devel/py-trimesh/trimesh-3.5.25/trimesh/exchange/
H A Dstl.py180 face_count = int(len(blob) / face_len)
183 offset = face_len * np.arange(face_count).reshape((-1, 1))
184 normal_index = np.tile([2, 3, 4], (face_count, 1)) + offset
187 16, 17, 18], (face_count, 1)) + offset
190 faces = np.arange(face_count * 3).reshape((-1, 3))
H A Dopenctm.py137 face_count = ctmGetInteger(ctm, CTM_TRIANGLE_COUNT)
141 count=face_count * 3).reshape((-1, 3))
152 count=face_count * 3).reshape((-1, 3))
/dports/multimedia/tinyobjloader/tinyobjloader-2.0.0rc8-3-g7ba4b65/experimental/
H A Dtinyobj_loader_opt.h1532 size_t face_count = face_offsets[t]; in parseObj()
1541 face_count < num_indices) { in parseObj()
1616 for (size_t face_count = 1; face_count < num_indices; ++face_count) in parseObj() local
1618 attrib->material_ids[face_count] = attrib->material_ids[face_count - 1]; in parseObj()
1631 int face_count = 0; in parseObj() local
1649 if (face_count == 0) { in parseObj()
1652 shape.face_offset = face_count; in parseObj()
1653 face_prev_offset = face_count; in parseObj()
1659 face_prev_offset = face_count; in parseObj()
1668 face_prev_offset = face_count; in parseObj()
[all …]
/dports/graphics/blender/blender-2.91.0/source/blender/modifiers/intern/
H A DMOD_decimate.c93 int face_count) in updateFaceCount() argument
95 dmd->face_count = face_count; in updateFaceCount()
100 dmd_orig->face_count = face_count; in updateFaceCount()
142 if (dmd->face_count <= 3) { in modifyMesh()
/dports/cad/cura-engine/CuraEngine-fadb5d6b/src/
H A DMeshGroup.cpp150 …size_t face_count = (file_size - 80 - sizeof(uint32_t)) / 50; //Subtract the size of the header. E… in loadMeshSTL_binary() local
167 if (reported_face_count != face_count) in loadMeshSTL_binary()
169 …d be corrupt!\n", std::to_string(reported_face_count).c_str(), std::to_string(face_count).c_str()); in loadMeshSTL_binary()
175 mesh->faces.reserve(face_count); in loadMeshSTL_binary()
176 mesh->vertices.reserve(face_count); in loadMeshSTL_binary()
177 for (unsigned int i = 0; i < face_count; i++) in loadMeshSTL_binary()
/dports/devel/raylib/raylib-3.7.0/src/external/
H A Dtinyobj_loader_c.h1338 unsigned int face_count = 0; in tinyobj_parse_obj() local
1421 face_count += commands[i].num_f_num_verts; in tinyobj_parse_obj()
1428 unsigned int face_count = 0; in tinyobj_parse_obj() local
1463 if (face_count == 0) { in tinyobj_parse_obj()
1467 prev_shape_face_offset = face_count; in tinyobj_parse_obj()
1468 prev_face_offset = face_count; in tinyobj_parse_obj()
1478 prev_face_offset = face_count; in tinyobj_parse_obj()
1487 prev_face_offset = face_count; in tinyobj_parse_obj()
1494 prev_shape_face_offset = face_count; in tinyobj_parse_obj()
1498 face_count++; in tinyobj_parse_obj()
[all …]
/dports/cad/uranium/Uranium-3ed9c4de/plugins/FileHandlers/STLWriter/
H A DSTLWriter.py87 face_count = 0
91 face_count += node.getMeshData().getFaceCount()
93 face_count += node.getMeshData().getVertexCount() / 3
95 stream.write(struct.pack("<I", int(face_count))) #Write number of faces to STL
/dports/math/fcl/fcl-0.7.0/test/geometry/shape/
H A Dtest_convex.cpp105 virtual int face_count() const = 0;
127 return Convex<S>(points(), face_count(), polygons(), throw_if_invalid); in MakeConvex()
181 GTEST_ASSERT_EQ(face_count(), count); in confirm_data()
217 int face_count() const final { return 4; } in face_count() function in fcl::__anondc2dd9380111::EquilateralTetrahedron
260 int face_count() const final { return 6; } in face_count() function in fcl::__anondc2dd9380111::Cube
620 int face_count() const final { return 6; } in face_count() function in fcl::__anondc2dd9380111::CoPlanarTetrahedron
663 int face_count() const final { return 3; } in face_count() function in fcl::__anondc2dd9380111::HoleTetrahedron
687 int face_count() const final { return 4; } in face_count() function in fcl::__anondc2dd9380111::CrackTetrahedron
708 int face_count() const final { return 4; } in face_count() function in fcl::__anondc2dd9380111::StrayVertexTetrahedron
729 int face_count() const final { return 5; } in face_count() function in fcl::__anondc2dd9380111::NonManifoldTetrahedron
[all …]
/dports/graphics/aloadimage/arcan-0.6.1/src/frameserver/decode/default/parsers/
H A Dtinyobj_loader_c.h1338 size_t face_count = 0; in tinyobj_parse_obj() local
1420 face_count += commands[i].num_f_num_verts; in tinyobj_parse_obj()
1427 unsigned int face_count = 0; in tinyobj_parse_obj() local
1462 if (face_count == 0) { in tinyobj_parse_obj()
1466 prev_shape_face_offset = face_count; in tinyobj_parse_obj()
1467 prev_face_offset = face_count; in tinyobj_parse_obj()
1477 prev_face_offset = face_count; in tinyobj_parse_obj()
1486 prev_face_offset = face_count; in tinyobj_parse_obj()
1493 prev_shape_face_offset = face_count; in tinyobj_parse_obj()
1497 face_count++; in tinyobj_parse_obj()
[all …]
/dports/sysutils/acfgfs/arcan-0.6.1/src/frameserver/decode/default/parsers/
H A Dtinyobj_loader_c.h1338 size_t face_count = 0; in tinyobj_parse_obj() local
1420 face_count += commands[i].num_f_num_verts; in tinyobj_parse_obj()
1427 unsigned int face_count = 0; in tinyobj_parse_obj() local
1462 if (face_count == 0) { in tinyobj_parse_obj()
1466 prev_shape_face_offset = face_count; in tinyobj_parse_obj()
1467 prev_face_offset = face_count; in tinyobj_parse_obj()
1477 prev_face_offset = face_count; in tinyobj_parse_obj()
1486 prev_face_offset = face_count; in tinyobj_parse_obj()
1493 prev_shape_face_offset = face_count; in tinyobj_parse_obj()
1497 face_count++; in tinyobj_parse_obj()
[all …]
/dports/x11/aclip/arcan-0.6.1/src/frameserver/decode/default/parsers/
H A Dtinyobj_loader_c.h1338 size_t face_count = 0; in tinyobj_parse_obj() local
1420 face_count += commands[i].num_f_num_verts; in tinyobj_parse_obj()
1427 unsigned int face_count = 0; in tinyobj_parse_obj() local
1462 if (face_count == 0) { in tinyobj_parse_obj()
1466 prev_shape_face_offset = face_count; in tinyobj_parse_obj()
1467 prev_face_offset = face_count; in tinyobj_parse_obj()
1477 prev_face_offset = face_count; in tinyobj_parse_obj()
1486 prev_face_offset = face_count; in tinyobj_parse_obj()
1493 prev_shape_face_offset = face_count; in tinyobj_parse_obj()
1497 face_count++; in tinyobj_parse_obj()
[all …]
/dports/x11/arcan-trayicon/arcan-0.6.1/src/frameserver/decode/default/parsers/
H A Dtinyobj_loader_c.h1338 size_t face_count = 0; in tinyobj_parse_obj() local
1420 face_count += commands[i].num_f_num_verts; in tinyobj_parse_obj()
1427 unsigned int face_count = 0; in tinyobj_parse_obj() local
1462 if (face_count == 0) { in tinyobj_parse_obj()
1466 prev_shape_face_offset = face_count; in tinyobj_parse_obj()
1467 prev_face_offset = face_count; in tinyobj_parse_obj()
1477 prev_face_offset = face_count; in tinyobj_parse_obj()
1486 prev_face_offset = face_count; in tinyobj_parse_obj()
1493 prev_shape_face_offset = face_count; in tinyobj_parse_obj()
1497 face_count++; in tinyobj_parse_obj()
[all …]
/dports/graphics/pcl-pointclouds/pcl-pcl-1.12.0/surface/src/3rdparty/opennurbs/
H A Dopennurbs_brep_io.cpp667 const int face_count = brep->m_F.Count(); in Write() local
883 const int face_count = m_F.Count(); in Read() local
968 int face_count = 0; in ReadOld200() local
979 if (rc) rc = file.ReadInt( &face_count ); in ReadOld200()
1027 m_S.Reserve(face_count); in ReadOld200()
1028 for ( i = 0; rc && i < face_count; i++ ) { in ReadOld200()
1037 m_F.Reserve(face_count); in ReadOld200()
1041 for ( fi = 0; rc && fi < face_count; fi++ ) in ReadOld200()
1171 for ( i = 0; rc && i < face_count; i++ ) { in ReadOld200()
1184 for ( i = 0; i < face_count; i++ ) { in ReadOld200()
[all …]
/dports/math/gismo/gismo-21.12.0/external/onurbs/
H A Dopennurbs_brep_io.cpp678 const int face_count = brep->m_F.Count(); in Write() local
894 const int face_count = m_F.Count(); in Read() local
979 int face_count = 0; in ReadOld200() local
990 if (rc) rc = file.ReadInt( &face_count ); in ReadOld200()
1038 m_S.Reserve(face_count); in ReadOld200()
1039 for ( i = 0; rc && i < face_count; i++ ) { in ReadOld200()
1048 m_F.Reserve(face_count); in ReadOld200()
1052 for ( fi = 0; rc && fi < face_count; fi++ ) in ReadOld200()
1182 for ( i = 0; rc && i < face_count; i++ ) { in ReadOld200()
1195 for ( i = 0; i < face_count; i++ ) { in ReadOld200()
[all …]
/dports/games/openbve/OpenBVE-1.8.2.1/source/OpenBveApi/Objects/ObjectTypes/
H A DStaticObject.cs757 int face_count = 0; in OptimizeObject()
761 face_count = 3; in OptimizeObject()
766 face_count = 4; in OptimizeObject()
770 if (face_count == 3 || face_count == 4) in OptimizeObject()
772 if (Mesh.Faces[i].Vertices.Length > face_count) in OptimizeObject()
774 int n = (Mesh.Faces[i].Vertices.Length - face_count) / face_count; in OptimizeObject()
782 Mesh.Faces[f + j].Vertices = new MeshFaceVertex[face_count]; in OptimizeObject()
783 for (int k = 0; k < face_count; k++) in OptimizeObject()
785 Mesh.Faces[f + j].Vertices[k] = Mesh.Faces[i].Vertices[face_count + face_count * j + k]; in OptimizeObject()
794 Array.Resize(ref Mesh.Faces[i].Vertices, face_count); in OptimizeObject()

12345678910