|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectanar.Parametric
anar.Obj
public class Obj

| Field Summary | |
|---|---|
java.util.ArrayList<Face> |
faces
|
static RenderObj |
globalRender
|
java.util.ArrayList<Pts> |
lines
|
Pts |
pts
|
RenderObj |
render
|
| Fields inherited from class anar.Parametric |
|---|
meta |
| Constructor Summary | |
|---|---|
Obj()
|
|
Obj(Obj o)
|
|
Obj(Obj o,
Transform t)
|
|
| Method Summary | |
|---|---|
Obj |
add(Face f)
|
Obj |
add(Obj myO)
done on the stress, consider revise tthis |
Obj |
add(Pt pt)
|
Obj |
add(Pts pts)
|
void |
addAllFaces(java.util.ArrayList<Face> list)
|
void |
addAllPt(java.util.ArrayList<Pt> list)
|
void |
addAllPts(java.util.ArrayList<Pts> list)
|
java.util.ArrayList<Pt> |
allPts()
Scan and collect all points from an object. |
Obj |
apply(Transform t)
|
float |
area()
|
static float |
area(Obj o)
|
XYZ[] |
bound()
|
XYZ |
boundCenter()
|
Obj |
copy()
|
void |
draw()
|
Obj |
exportANSYS()
|
Obj |
exportANSYS(java.lang.String fileName)
|
Obj |
exportAutolisp()
|
Obj |
exportAutolisp(java.lang.String fileName)
|
Obj |
exportOBJ()
|
Obj |
exportOBJ(java.lang.String fileName)
|
Obj |
exportPovRAY()
|
Obj |
exportPovRAY(java.lang.String fileName)
|
Obj |
exportRadiance()
|
Obj |
exportRadiance(java.lang.String fileName)
|
Obj |
exportRhino()
|
Obj |
exportRhino(java.lang.String fileName)
|
Obj |
exportSketchUp()
|
Obj |
exportSketchUp(java.lang.String fileName)
|
Face |
face(int i)
|
Obj |
face(Pt[] pts)
|
Face |
faceEnd()
|
Face |
faceEnd(int i)
|
Pts |
faceMod(int i)
Get the face i%numOfFaces() in the list. |
Obj |
fill(AColor c)
|
Obj |
fill(float g)
|
Obj |
fill(float g,
float a)
|
Obj |
fill(float r,
float g,
float b)
|
Obj |
fill(float r,
float g,
float b,
float a)
|
Obj |
fill(RenderFace c)
|
Obj |
fillP5(int c)
|
Face |
getFace(int i)
|
Pts |
getLine(int i)
|
Pt |
getPt(int i)
pt(int) |
Pts |
line(int i)
|
Obj |
line(Pt[] pts)
|
Pts |
lineEnd()
|
Pts |
lineEnd(int i)
|
Pts |
lineMod(int i)
Get the line i%numOfLine() in the list. |
int |
numOfFaces()
|
int |
numOfLines()
|
int |
numOfPts()
|
Obj |
orphaned()
Export the geometry without any Parametric features. |
Pt |
pt(int i)
|
Pt |
ptEnd()
|
Pt |
ptEnd(int i)
|
Pt |
ptMod(int i)
Get the point i%numOfPts() in the list. |
void |
removeFace(Face i)
|
Face |
removeFace(int i)
|
Pt |
removePt(int i)
|
void |
removePt(Pt i)
|
Pts |
removePts(int i)
|
void |
removePts(Pts i)
|
Obj |
render(RenderFace render)
Change the render for this object. |
Obj |
render(RenderObj render)
Change the render for this object. |
Obj |
render(RenderPt render)
Change the render for this object. |
Obj |
render(RenderPts render)
Change the render for this object. |
Obj |
rotateX(float v)
|
Obj |
rotateX(Param v)
|
Obj |
rotateY(float v)
|
Obj |
rotateY(Param v)
|
Obj |
rotateZ(float v)
|
Obj |
rotateZ(Param v)
|
Obj |
scale(float x)
|
Obj |
scale(float x,
float y)
|
Obj |
scale(float x,
float y,
float z)
|
Obj |
scale(Param x)
|
Obj |
scale(Param x,
Param y)
|
Obj |
scale(Param x,
Param y,
Param z)
|
Obj |
scale(Pt p)
|
Obj |
scale(XYZ vector)
|
Obj |
scaleX(float x)
|
Obj |
scaleX(Param x)
|
Obj |
scaleY(float y)
|
Obj |
scaleY(Param y)
|
Obj |
scaleZ(float z)
|
Obj |
scaleZ(Param z)
|
Obj |
set(Meta meta)
|
void |
set(RenderFace r)
|
Obj |
set(java.lang.String tag)
|
Obj |
setMeta(Meta meta)
|
Obj |
tag(Meta tag)
|
Obj |
tag(java.lang.String tag)
|
java.lang.String |
toANSYS()
|
java.lang.String |
toAutocad()
|
void |
toAutocad(TextIO out)
Text formated as AutoLisp code. |
java.lang.String |
toObjExporter()
|
java.lang.String |
toObjExporter(java.lang.String name)
|
void |
toObjExporter(TextIO out)
Text formated as Obj (file format). |
void |
toObjExporter(TextIO out,
java.lang.String name)
|
java.lang.String |
toPovRay()
|
void |
toPovRay(TextIO out)
Text formated as PovRAY code. |
void |
toRadiance(TextIO out)
Text formated as Radiance code. |
java.lang.String |
toRhino()
|
void |
toRhino(TextIO out)
Text formated as Rhino VisualBasic code. |
java.lang.String |
toSketchUp()
|
void |
toSketchUp(TextIO out)
Text formated as Ruby code for SketchUP. |
java.lang.String |
toString()
|
Obj |
translate(float x,
float y)
|
Obj |
translate(float x,
float y,
float z)
|
Obj |
translate(Param x,
Param y)
|
Obj |
translate(Param x,
Param y,
Param z)
|
Obj |
translate(Pt p)
|
Obj |
translate(XYZ vector)
|
Obj |
translateX(float x)
|
Obj |
translateX(Param x)
|
Obj |
translateY(float y)
|
Obj |
translateY(Param y)
|
Obj |
translateZ(float z)
|
Obj |
translateZ(Param z)
|
Obj |
triangulate()
|
| Methods inherited from class anar.Parametric |
|---|
child, get, getMeta, getPrimitive, parent, parent, parentList, parentList, parentList, parentListGraphViz, parentListGraphViz, parentListRecursive, parentListRecursiveGraphViz, parentToString, parentToStringRecursive, parentToStringRecursive, primitiveToString, replaceParent, replaceParent, replicate, tag |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.util.ArrayList<Face> faces
public java.util.ArrayList<Pts> lines
public Pts pts
public static RenderObj globalRender
public RenderObj render
| Constructor Detail |
|---|
public Obj()
public Obj(Obj o)
public Obj(Obj o,
Transform t)
| Method Detail |
|---|
public Obj copy()
public Obj add(Obj myO)
myO - public Obj add(Face f)
public Obj add(Pts pts)
public Obj add(Pt pt)
public Obj line(Pt[] pts)
pts - describing the line to add.
public Obj face(Pt[] pts)
pts - describing the face to add.
public void addAllFaces(java.util.ArrayList<Face> list)
public void addAllPts(java.util.ArrayList<Pts> list)
public void addAllPt(java.util.ArrayList<Pt> list)
public Obj set(Meta meta)
set in interface iTaggablepublic Obj set(java.lang.String tag)
string - public Obj setMeta(Meta meta)
setMeta in interface iTaggablepublic Obj tag(java.lang.String tag)
tag in interface iTaggablepublic Obj tag(Meta tag)
public void set(RenderFace r)
public int numOfPts()
public int numOfLines()
public int numOfFaces()
@Deprecated public Pt getPt(int i)
pt(int)
public Pt pt(int i)
public Pt ptMod(int i)
i -
pt(int)public Pt ptEnd()
public Pt ptEnd(int i)
public Pts getLine(int i)
public Pts line(int i)
public Pts lineMod(int i)
i -
public Pts lineEnd()
public Pts lineEnd(int i)
public Face getFace(int i)
public Face face(int i)
public Pts faceMod(int i)
i -
public Face faceEnd()
public Face faceEnd(int i)
public Face removeFace(int i)
public Pt removePt(int i)
public Pts removePts(int i)
public void removeFace(Face i)
public void removePt(Pt i)
public void removePts(Pts i)
public Obj rotateX(Param v)
public Obj rotateX(float v)
public Obj rotateY(Param v)
public Obj rotateY(float v)
public Obj rotateZ(Param v)
public Obj rotateZ(float v)
public Obj scale(XYZ vector)
public Obj scale(Pt p)
public Obj scale(float x)
public Obj scale(float x,
float y)
public Obj scale(float x,
float y,
float z)
public Obj scale(Param x,
Param y,
Param z)
public Obj scale(Param x,
Param y)
public Obj scale(Param x)
public Obj scaleX(float x)
public Obj scaleX(Param x)
public Obj scaleY(float y)
public Obj scaleY(Param y)
public Obj scaleZ(float z)
public Obj scaleZ(Param z)
public Obj translate(XYZ vector)
public Obj translate(Pt p)
public Obj translate(float x,
float y,
float z)
public Obj translate(float x,
float y)
public Obj translate(Param x,
Param y,
Param z)
public Obj translate(Param x,
Param y)
public Obj translateX(float x)
public Obj translateX(Param x)
public Obj translateY(float y)
public Obj translateY(Param y)
public Obj translateZ(float z)
public Obj translateZ(Param z)
public Obj apply(Transform t)
public void draw()
public Obj fill(float g)
public Obj fill(float g,
float a)
public Obj fill(float r,
float g,
float b)
public Obj fill(float r,
float g,
float b,
float a)
public Obj fillP5(int c)
public Obj fill(AColor c)
public Obj fill(RenderFace c)
public Obj render(RenderObj render)
render -
public Obj render(RenderFace render)
render -
public Obj render(RenderPts render)
render -
public Obj render(RenderPt render)
render -
public Obj orphaned()
public java.lang.String toANSYS()
@Deprecated public java.lang.String toAutocad()
public void toAutocad(TextIO out)
(Command "_3dface" "5.0,-5.0,-15.0" "5.0,5.0,-15.0" "-5.0,5.0,-15.0" "-5.0,-5.0,-15.0" "" "" ) (Command "_3dface" "5.0,-5.0,-5.0" "5.0,5.0,-5.0" "5.0,5.0,-15.0" "5.0,-5.0,-15.0" "" "" ) (Command "_3dface" "5.0,5.0,-5.0" "-5.0,5.0,-5.0" "-5.0,5.0,-15.0" "5.0,5.0,-15.0" "" "" ) (Command "_3dface" "-5.0,5.0,-5.0" "-5.0,-5.0,-5.0" "-5.0,-5.0,-15.0" "-5.0,5.0,-15.0" "" "" ) (Command "line" "30.0,100.0,0.0" "28.269678,104.48496,1.857639" "26.435183,109.49073,4.0277777" "" )
out - - PrintWriter in file@Deprecated public java.lang.String toRhino()
public void toRhino(TextIO out)
x = Array( Array(17.320509,-10.0,70.0), Array(10.0,-17.320509,70.0), Array(-2.3092639E-14,-20.0,70.0), Array(-10.0,-17.320509,70.0), Array(-17.320509,-10.0,70.0), Array(-20.0,1.4210855E-14,70.0), Array(-17.320509,10.0,70.0), Array(-10.0,17.320509,70.0), Array(7.1054274E-15,20.0,70.0), Array(17.320509,-10.0,70.0) ) y = Rhino.AddPolyline(x) rhino.MeshPolyline(y) rhino.DeleteObject(y) x = Array( Array( 30.0, 100.0, 0.0), Array( 23.333333333333332, 116.66666666666667, 6.666666666666667), Array( 13.333333333333334, 150.0, 23.333333333333332), Array( 10.0, 150.0, 20.0) ) y = Rhino.AddCurve( x) x = Array( Array( 10.0, 150.0, 20.0), Array( 6.666666666666666, 150.0, 16.666666666666668), Array( 16.666666666666668, 120.0, -13.333333333333334), Array( 20.0, 100.0, -10.0) ) y = Rhino.AddCurve( x)
out - - PrintWriter in file@Deprecated public java.lang.String toPovRay()
public void toPovRay(TextIO out)
polygon {
12,
<17.320509,70.0,-10.0>,
<10.0,70.0,-17.320509>,
<-2.3092639E-14,70.0,-20.0>,
<-10.0,70.0,-17.320509>,
<-17.320509,70.0,-10.0>,
<-20.0,70.0,1.4210855E-14>,
<-17.320509,70.0,10.0>,
<-10.0,70.0,17.320509>,
<7.1054274E-15,70.0,20.0>,
<10.0,70.0,17.320509>,
<17.320509,70.0,10.0>,
<20.0,70.0,0.0>
texture{ DefTex }
}
cylinder { <30.0,0.0,100.0>, <28.269678,1.857639,104.48496>, CylRad }
cylinder { <28.269678,1.857639,104.48496>, <26.435183,4.0277777,109.49073>, CylRad }
cylinder { <26.435183,4.0277777,109.49073>, <24.53125,6.40625,114.84375>, CylRad }
cylinder { <24.53125,6.40625,114.84375>, <22.59259,8.888889,120.37036>, CylRad }
cylinder { <22.59259,8.888889,120.37036>, <20.653936,11.371528,125.896996>, CylRad }
cylinder { <20.653936,11.371528,125.896996>, <18.75,13.75,131.25>, CylRad }
out - - PrintWriter in filepublic void toRadiance(TextIO out)
out - - PrintWriter in file@Deprecated public java.lang.String toSketchUp()
public void toSketchUp(TextIO out)
entities.add_face [ Geom::Point3d.new(-20.0,1.4210855E-14,60.0), Geom::Point3d.new(-17.320509,-10.0,60.0), Geom::Point3d.new(-8.6602545,-5.0,40.0), Geom::Point3d.new(-10.0,7.1054274E-15,40.0) ] entities.add_face [ Geom::Point3d.new(-17.320509,-10.0,60.0), Geom::Point3d.new(-10.0,-17.320509,60.0), Geom::Point3d.new(-5.0,-8.6602545,40.0), Geom::Point3d.new(-8.6602545,-5.0,40.0) ] entities.add_edges [ Geom::Point3d.new(30.0,100.0,0.0), Geom::Point3d.new(30.0,100.0,0.0), Geom::Point3d.new(10.0,150.0,20.0), Geom::Point3d.new(20.0,100.0,-10.0), Geom::Point3d.new(20.0,90.0,30.0), Geom::Point3d.new(0.0,90.0,20.0), Geom::Point3d.new(-30.0,80.0,-20.0), Geom::Point3d.new(-30.0,80.0,-20.0) ]
out - - PrintWriter in file@Deprecated public java.lang.String toObjExporter()
@Deprecated public java.lang.String toObjExporter(java.lang.String name)
public void toObjExporter(TextIO out)
o box2409635 v 110.0 30.0 0.0 v 110.0 30.0 20.0 v 110.0 0.0 20.0 v 110.0 0.0 0.0 v 110.0 30.0 20.0 v 100.0 30.0 20.0 v 100.0 0.0 20.0 v 110.0 0.0 20.0 v 100.0 30.0 20.0 v 100.0 30.0 0.0 v 100.0 0.0 0.0 v 100.0 0.0 20.0 v 100.0 30.0 0.0 v 110.0 30.0 0.0 v 110.0 0.0 0.0 v 100.0 0.0 0.0 v 110.0 0.0 0.0 v 110.0 0.0 20.0 v 100.0 0.0 20.0 v 100.0 0.0 0.0 v 100.0 30.0 0.0 v 100.0 30.0 20.0 v 110.0 30.0 20.0 v 110.0 30.0 0.0 usemtl mm7792807 f -24 -23 -22 -21 f -20 -19 -18 -17 f -16 -15 -14 -13 f -12 -11 -10 -9 f -8 -7 -6 -5 f -4 -3 -2 -1 v 20.822062 14.490453 46.083195 p -1 v 84.33638 6.5318503 27.491554 p -1 v 94.51364 83.29432 56.426346 p -1
public void toObjExporter(TextIO out,
java.lang.String name)
public Obj exportRhino()
public Obj exportRhino(java.lang.String fileName)
public Obj exportPovRAY()
public Obj exportPovRAY(java.lang.String fileName)
public Obj exportSketchUp()
public Obj exportSketchUp(java.lang.String fileName)
public Obj exportRadiance()
public Obj exportRadiance(java.lang.String fileName)
public Obj exportOBJ()
public Obj exportOBJ(java.lang.String fileName)
public Obj exportAutolisp()
public Obj exportAutolisp(java.lang.String fileName)
public Obj exportANSYS()
public Obj exportANSYS(java.lang.String fileName)
public java.util.ArrayList<Pt> allPts()
public static float area(Obj o)
public float area()
public XYZ[] bound()
public XYZ boundCenter()
public Obj triangulate()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||