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

Method _save_viewpoints

src/bcf/bcf/v3/topic.py:190–195  ·  view source on GitHub ↗
(self, destination_zip: ZipFileInterface, topic_dir: str)

Source from the content-addressed store, hash-verified

188 self._save_reference_files(destination_zip)
189
190 def _save_viewpoints(self, destination_zip: ZipFileInterface, topic_dir: str) -> None:
191 if not self.topic.viewpoints or not (viewpoints := self.topic.viewpoints.view_point):
192 return
193 for vpt in viewpoints:
194 if vpt.viewpoint:
195 self.viewpoints[vpt.viewpoint].save(destination_zip, topic_dir, vpt)
196
197 def _save_xml(self, destination_zip: ZipFileInterface, item: Any, target: str) -> None:
198 to_write = self._xml_handler.serialize(item) if item else self._topic_dir.joinpath(target).read_bytes()

Callers 1

saveMethod · 0.95

Calls 1

saveMethod · 0.45

Tested by

no test coverage detected