📄 test.java
字号:
package operation;
import brgeometry.*;
import com.versant.trans.*;
import java.util.*;
import helper.ProBag;
import com.versant.fund.*;
import com.versant.trans.*;
import helper.rootMaker;
import helper.Apphelper;
/**
* <p>Title: Broundary Rrepresentaion</p>
* <p>Description: 这是一个客户端的测试程序</p>
* <p>Copyright: Copyright (c) 2003</p>
* <p>Company: USTC</p>
* @author unascribed
* @version 1.0
*/
public class test {
//static TransSession session = new TransSession("mydb");
public test() {
}
public static void main(String[] args) {
// RequireMan requireMan =new RequireMan(session );
//requireMan.showconSolid("SELECT * from brgeometry.Solid where volume < 8");
//requireMan.showconEdge("SELECT * from brgeometry.Edge where length=1");
//requireMan.showconFace("SELECT * from brgeometry.Face where area=1");
/* //产生属性
double length = 3;
double width = 4;
double high = 7;
double newLength = 10;
double radius = 6;
double times = 3;
//产生属性包
ProBag proBag = new ProBag();
proBag.setHigh(high);
proBag.setLength(length);
proBag.setWidth(width);
proBag.setRadius(radius);
CylinderCurveSoildMan man=new CylinderCurveSoildMan (session );
Solid s1=man.create();
s1.init(proBag);*/
/* VEnumeration result=requireMan.deepSelect("Sphere#1","Sphere" );
System.out.println(result.size());
Solid s=(Solid) result.nextElement();
System.out.println(s);
Face sphereCurveface=(Face)result.nextElement();
System.out.println(sphereCurveface);
Edge roundCurveEdge=(Edge)result.nextElement();
System.out.println(roundCurveEdge);
Vertice centralPoint=(Vertice)result.nextElement();
System.out.println(centralPoint);
Vertice circlePoint=(Vertice)result.nextElement();
System.out.println(circlePoint);*/
/* VEnumeration result=requireMan.deepSelect("Cuboid#1","Cuboid");
Solid s=(Solid) result.nextElement();
System.out.println(s);
Face f1=(Face)result.nextElement();
System.out.println(f1);
Face f2=(Face)result.nextElement();
System.out.println(f2);
Face f3=(Face)result.nextElement();
System.out.println(f3);
Face f4=(Face)result.nextElement();
System.out.println(f4);
Face f5=(Face)result.nextElement();
System.out.println(f5);
Face f6=(Face)result.nextElement();
System.out.println(f6);
*/
//产生属性包
//SquarePlaneSolidMan man=new SquarePlaneSolidMan(session);
//CoboidPlaneSolidMan man = new CoboidPlaneSolidMan(session);
// man.deleteByRoot("SquarePlaneSolid#1");
/*
//产生属性
double length = 3;
double width = 4;
double high = 7;
double newLength = 10;
double radius = 6;
double times = 3;
//产生属性包
ProBag proBag = new ProBag();
proBag.setHigh(high);
proBag.setLength(length);
proBag.setWidth(width);
proBag.setRadius(radius);
*/
test test1 = new test();
/*
CylinderCurveSoildMan man=new CylinderCurveSoildMan (session );
SquarePlaneSolidMan man=new SquarePlaneSolidMan(session);
CoboidPlaneSolidMan man = new CoboidPlaneSolidMan(session);
ConeCurveSolidMan man4 =new ConeCurveSolidMan ( session );
SphereCurveSolidMan man5=new SphereCurveSolidMan(session);
Solid s = man.create();
s.init(proBag);
*/
/*
//删除
man.deleteByRoot("CuboidPlaneSolid#4");
s.scale(times);
*/
//初始化应用程序
Apphelper ap=new Apphelper();
ap.initApplication();
helper.Apphelper.cleanApplication ();
/*
//打印
System.out.println("length :" + probag1.getLength());
System.out.println("width :" + probag1.getWidth());
System.out.println("high :" + probag1.getHigh());
System.out.println("radius :" + probag1.getRadius());
System.out.println("volume :" + s.getVolume());
System.out.println("Surface:" + s.getSurface());
*/
/*
RequireMan requireMan =new RequireMan(session );
test1.showCoboidPlaneSolid();
*/
//session.endSession();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -