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

Method add_viewpoint

src/bcf/bcf/v2/topic.py:246–254  ·  view source on GitHub ↗

Add a viewpoint pointed at the placement of an IFC element to the topic. Args: element: The IFC element.

(self, element: entity_instance)

Source from the content-addressed store, hash-verified

244 destination_zip.writestr(real_path.at, self.document_references[doc.referenced_document])
245
246 def add_viewpoint(self, element: entity_instance) -> VisualizationInfoHandler:
247 """Add a viewpoint pointed at the placement of an IFC element to the topic.
248
249 Args:
250 element: The IFC element.
251 """
252 new_viewpoint = VisualizationInfoHandler.create_new(element, self._xml_handler)
253 self.add_visinfo_handler(new_viewpoint)
254 return new_viewpoint
255
256 def add_viewpoint_from_point_and_guids(
257 self, position: NDArray[np.float64], *guids: str

Callers 1

to_fileMethod · 0.45

Calls 2

add_visinfo_handlerMethod · 0.95
create_newMethod · 0.45

Tested by

no test coverage detected