Example #1
0
		public string GetScadOutputRecursive(TransformBase objectToProcess, int level = 0)
		{
			return ApplyIndent(AddRenderInfoIfReqired(objectToProcess) + "multmatrix(m = [ ["
				+ objectToProcess.transform.Column0.ToString("0.#######") + "],["
				+ objectToProcess.transform.Column1.ToString("0.#######") + "],["
				+ objectToProcess.transform.Column2.ToString("0.#######") + "],["
				+ objectToProcess.transform.Column3.ToString("0.#######") + "] ])" + AddNameAsComment(objectToProcess) + "\n{\n" + GetScadOutputRecursive((dynamic)objectToProcess.objectToTransform, level + 1) + "\n}", level);
		}
Example #2
0
 public CsgObject DoCopyAndFlatten(TransformBase objectToProcess)
 {
     return new TransformBase(DoCopyAndFlatten((dynamic)objectToProcess.objectToTransform), objectToProcess.transform, objectToProcess.Name);
 }
Example #3
0
		public PolygonMesh.Mesh CsgToMeshRecursive(TransformBase objectToProcess)
		{
			PolygonMesh.Mesh mesh = CsgToMeshRecursive((dynamic)objectToProcess.ObjectToTransform);
			mesh.Transform(objectToProcess.ActiveTransform);
			return mesh;
		}
		public IPrimitive GetIPrimitiveRecursive(TransformBase objectToProcess)
		{
			return new Transform(GetIPrimitiveRecursive((dynamic)objectToProcess.ObjectToTransform), objectToProcess.ActiveTransform);
		}
Example #5
0
 public IRayTraceable GetIRayTraceableRecursive(TransformBase objectToProcess)
 {
     return new Transform(GetIRayTraceableRecursive((dynamic)objectToProcess.ObjectToTransform), objectToProcess.ActiveTransform);
 }
Example #6
0
 public void RenderToGlRecursive(TransformBase objectToProcess)
 {
     GL.PushMatrix();
     GL.MultMatrix(objectToProcess.transform.GetAsDoubleArray());
     RenderToGlRecursive((dynamic)objectToProcess.objectToTransform);
     GL.PopMatrix();
 }
		public string LookForNamedPartRecursive(TransformBase objectToProcess, Matrix4X4 accumulatedMatrix)
		{
			accumulatedMatrix = objectToProcess.transform * accumulatedMatrix;
			return LookForNamedPartRecursive((dynamic)objectToProcess.objectToTransform, accumulatedMatrix);
		}