src/linetypes/circularprimitive.cpp

changeset 1412
f5eb947a2e7f
parent 1410
e76e219c48e9
child 1418
503d4e7e27c9
--- a/src/linetypes/circularprimitive.cpp	Tue Jun 19 22:45:10 2018 +0300
+++ b/src/linetypes/circularprimitive.cpp	Tue Jun 19 23:18:58 2018 +0300
@@ -68,6 +68,20 @@
 	return true;
 }
 
+bool LDCircularPrimitive::isFlat() const
+{
+	switch (m_type)
+	{
+	case PrimitiveModel::Cylinder:
+	case PrimitiveModel::CylinderClosed:
+	case PrimitiveModel::CylinderOpen:
+		return false;
+
+	default:
+		return true;
+	}
+}
+
 void LDCircularPrimitive::rasterize(
 	DocumentManager* context,
 	Winding /* parentWinding */,

mercurial