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

Method add_visinfo_handler

src/bcf/bcf/v2/topic.py:271–281  ·  view source on GitHub ↗
(
        self, new_viewpoint: VisualizationInfoHandler, snapshot_filename: Optional[str] = None
    )

Source from the content-addressed store, hash-verified

269 return vi_handler
270
271 def add_visinfo_handler(
272 self, new_viewpoint: VisualizationInfoHandler, snapshot_filename: Optional[str] = None
273 ) -> mdl.ViewPoint:
274 self.viewpoints[new_viewpoint.guid + ".bcfv"] = new_viewpoint
275 viewpoint = mdl.ViewPoint(
276 viewpoint=new_viewpoint.guid + ".bcfv",
277 snapshot=snapshot_filename,
278 guid=new_viewpoint.guid,
279 )
280 self.markup.viewpoints.append(viewpoint)
281 return viewpoint
282
283 def __eq__(self, other: object) -> bool | NoReturn:
284 return (

Callers 4

add_viewpointMethod · 0.95
test_massive_bcfFunction · 0.45
test_massive_bcfFunction · 0.45

Calls 1

appendMethod · 0.45

Tested by 2

test_massive_bcfFunction · 0.36
test_massive_bcfFunction · 0.36