Esempio n. 1
0
		public string GetScadOutputRecursive(NGonExtrusion.NGonExtrusionPrimitive objectToProcess, int level = 0)
		{
			string info = AddRenderInfoIfReqired(objectToProcess);

			info += "cylinder(r1=" + objectToProcess.Radius1.ToString() + ", r2=" + objectToProcess.Radius1.ToString() + ", h=" + objectToProcess.Height.ToString() + ", center=true, $fn=" + objectToProcess.NumSides.ToString() + ");" + AddNameAsComment(objectToProcess);

			return ApplyIndent(info, level);
		}
Esempio n. 2
0
		public PolygonMesh.Mesh CsgToMeshRecursive(NGonExtrusion.NGonExtrusionPrimitive objectToProcess)
		{
			throw new NotImplementedException();
#if false
            info += "cylinder(r1=" + objectToProcess.Radius1.ToString() + ", r2=" + objectToProcess.Radius1.ToString() + ", h=" + objectToProcess.Height.ToString() + ", center=true, $fn=" + objectToProcess.NumSides.ToString() + ");";

            return ApplyIndent(info);
#endif
		}