コード例 #1
0
 public bool ChangeTriangle(int index, Triangle triangle)
 {
     CudaUtil.ChangePrimitivePoints(index, triangle.points);
     CudaUtil.ChangePrimitiveColor(index, triangle.materialColor);
     CudaUtil.ChangePrimitiveNormal(index, triangle.normal);
     return(true);
 }
コード例 #2
0
 public bool ChangePlane(int index, Plane plane)
 {
     CudaUtil.ChangePrimitiveColor(index, plane.materialColor);
     CudaUtil.ChangePrimitiveNormal(index, plane.normal);
     CudaUtil.ChangePrimitiveCentre(index, plane.centre);
     Log.instance.writeLog("将平面的参数变为,质心:" + plane.centre.x.ToString() + plane.centre.y.ToString() + plane.centre.z.ToString());
     Log.instance.writeLog("法向量" + plane.normal.x.ToString() + plane.normal.y.ToString() + plane.normal.z.ToString());
     return(true);
 }