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

Function infront_or_behind

src/serializers/SvgSerializer.cpp:778–787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

776
777namespace {
778 int infront_or_behind(const gp_Pln& pln, const gp_Pnt& p) {
779 auto d = (p.XYZ() - pln.Location().XYZ()).Dot(pln.Axis().Direction().XYZ());
780 int state;
781 if (std::abs(d) < 1.e-5) {
782 state = 0;
783 } else {
784 state = d < 0. ? -1 : 1;
785 }
786 return state;
787 }
788}
789
790void SvgSerializer::write(const geometry_data& data) {

Callers 1

writeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected