MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / polyhedron

Method polyhedron

src/model/Space.cpp:834–842  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

832 }
833
834 Polyhedron Space_Impl::polyhedron() const {
835 auto sfs = surfaces();
836 std::vector<Surface3d> surface3ds;
837 surface3ds.reserve(sfs.size());
838 for (size_t surfNum = 0; auto& surface : sfs) {
839 surface3ds.emplace_back(surface.vertices(), surface.nameString(), surfNum++);
840 }
841 return {surface3ds};
842 }
843
844 bool Space_Impl::isEnclosedVolume() const {
845 if (m_cachedIsEnclosed.has_value()) {

Callers 5

isEnclosedVolumeMethod · 0.95
volumeMethod · 0.95
TEST_FFunction · 0.80

Calls 3

nameStringMethod · 0.80
sizeMethod · 0.45
verticesMethod · 0.45

Tested by 1

TEST_FFunction · 0.64