MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / count

Method count

src/ifcgeom/kernels/opencascade/base_utils.cpp:74–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74int IfcGeom::util::count(const TopoDS_Shape& s, TopAbs_ShapeEnum t, bool unique) {
75 if (unique) {
76 TopTools_IndexedMapOfShape map;
77 TopExp::MapShapes(s, t, map);
78 return map.Extent();
79 } else {
80 int i = 0;
81 TopExp_Explorer exp(s, t);
82 for (; exp.More(); exp.Next()) {
83 ++i;
84 }
85 return i;
86 }
87}
88
89
90int IfcGeom::util::surface_genus(const TopoDS_Shape& s) {

Callers 15

SvIfcByGuidClass · 0.45
log_timepointsMethod · 0.45
runs_from_graphFunction · 0.45
arrangement_cell_iouFunction · 0.45
clean_noisy_pathsFunction · 0.45
stopMethod · 0.45
shorted_pathMethod · 0.45
get_timeFunction · 0.45
MessageMethod · 0.45
IfcConvert.cppFile · 0.45

Calls 2

MoreMethod · 0.80
NextMethod · 0.45

Tested by

no test coverage detected