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

Method convert_impl

src/ifcgeom/kernels/cgal/CgalKernel.cpp:803–818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

801
802
803bool CgalKernel::convert_impl(const taxonomy::shell::ptr shell, ConversionResults& results) {
804 cgal_shape_t shape;
805 if (!convert(shell, shape)) {
806 return false;
807 }
808 if (shape.size_of_facets() == 0) {
809 return false;
810 }
811 results.emplace_back(ConversionResult(
812 shell->instance->as<IfcUtil::IfcBaseEntity>()->id(),
813 shell->matrix,
814 new CgalShape(shape),
815 shell->surface_style
816 ));
817 return true;
818}
819
820bool CgalKernel::convert_impl(const taxonomy::solid::ptr solid, ConversionResults& results) {
821 if (solid->children.size() > 1) {

Callers

nothing calls this directly

Calls 15

convertFunction · 0.85
ConversionResultFunction · 0.85
NoticeFunction · 0.85
project_onto_planeFunction · 0.85
convert_placementFunction · 0.85
WarningFunction · 0.85
MessageClass · 0.85
push_backMethod · 0.80
vertices_beginMethod · 0.80
vertices_endMethod · 0.80
isMethod · 0.80
is_identityMethod · 0.80

Tested by

no test coverage detected