|
@@ -32,12 +32,12 @@ public class LaserMeterToDxfUtil {
|
|
* @param outPath dxf输出地址
|
|
* @param outPath dxf输出地址
|
|
*/
|
|
*/
|
|
|
|
|
|
- private static void toDxf(File inFile, String outPath) throws Exception{
|
|
|
|
|
|
+ public static void toDxf(File inFile, String outPath) throws Exception{
|
|
String msg = FileUtil.readString(inFile, StandardCharsets.UTF_8);
|
|
String msg = FileUtil.readString(inFile, StandardCharsets.UTF_8);
|
|
JSONArray jsonObject = JSONArray.parseArray(msg);
|
|
JSONArray jsonObject = JSONArray.parseArray(msg);
|
|
toDxf(jsonObject,outPath);
|
|
toDxf(jsonObject,outPath);
|
|
}
|
|
}
|
|
- private static void toDxf(String inPath, String outPath) throws Exception {
|
|
|
|
|
|
+ public static void toDxf(String inPath, String outPath) throws Exception {
|
|
JSONArray jsonObject = JSONArray.parseArray(inPath);
|
|
JSONArray jsonObject = JSONArray.parseArray(inPath);
|
|
toDxf(jsonObject,outPath);
|
|
toDxf(jsonObject,outPath);
|
|
}
|
|
}
|
|
@@ -49,7 +49,7 @@ public class LaserMeterToDxfUtil {
|
|
* @throws Exception
|
|
* @throws Exception
|
|
*/
|
|
*/
|
|
|
|
|
|
- private static void toDxf(JSONArray jsonArray, String outPath) throws Exception{
|
|
|
|
|
|
+ public static void toDxf(JSONArray jsonArray, String outPath) throws Exception{
|
|
|
|
|
|
DxfDocWriter dxfDocWriter = new DxfDocWriter();
|
|
DxfDocWriter dxfDocWriter = new DxfDocWriter();
|
|
HashSet<Vector3> pointSet= new HashSet<>();
|
|
HashSet<Vector3> pointSet= new HashSet<>();
|