| 776 | |
| 777 | namespace { |
| 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 | |
| 790 | void SvgSerializer::write(const geometry_data& data) { |