|
@@ -62,7 +62,7 @@ public class LaserMeterToDxfUtil {
|
|
|
*/
|
|
|
for (Object obj : jsonArray) {
|
|
|
JSONObject jsonObject = (JSONObject) (obj);
|
|
|
- JSONArray points = jsonObject.getJSONArray("dataset_points");
|
|
|
+ JSONArray points = jsonObject.getJSONArray("points");
|
|
|
JSONObject point1 = (JSONObject) (points.get(0));
|
|
|
JSONObject point2 = (JSONObject) (points.get(1));
|
|
|
Vector3 point3d1 = new Vector3(point1.getDouble("x"),point1.getDouble("y"),point1.getDouble("z"));
|
|
@@ -128,7 +128,7 @@ public class LaserMeterToDxfUtil {
|
|
|
}
|
|
|
|
|
|
public static void main(String[] args) throws Exception{
|
|
|
- String inPath ="D:\\cad\\work\\111\\1.json";
|
|
|
+ String inPath ="D:\\cad\\work\\111\\2.json";
|
|
|
String outPath ="D:\\cad\\work\\111\\"+new Date().getTime()+".dxf";
|
|
|
LaserMeterToDxfUtil.toDxf(new File(inPath),outPath);
|
|
|
}
|