Revision 10820 trunk/libraries/libDwg/src/com/iver/cit/jdwglib/dwg/objects/DwgVertexPFaceFace.java
DwgVertexPFaceFace.java | ||
---|---|---|
45 | 45 |
* |
46 | 46 |
* $Id$ |
47 | 47 |
* $Log$ |
48 |
* Revision 1.4 2007-03-06 19:39:38 azabala |
|
48 |
* Revision 1.5 2007-03-20 19:57:08 azabala |
|
49 |
* source code cleaning |
|
50 |
* |
|
51 |
* Revision 1.4 2007/03/06 19:39:38 azabala |
|
49 | 52 |
* Changes to adapt dwg 12 to general architecture |
50 | 53 |
* |
51 | 54 |
* Revision 1.3 2007/03/02 20:31:22 azabala |
... | ... | |
76 | 79 |
public class DwgVertexPFaceFace extends DwgObject implements IDwgVertex{ |
77 | 80 |
|
78 | 81 |
private int flags; |
79 |
private double[] points; |
|
82 |
private double[] vertices; |
|
83 |
private int[] verticesidx; |
|
80 | 84 |
|
81 | 85 |
public DwgVertexPFaceFace(int index) { |
82 | 86 |
super(index); |
87 |
vertices = new double[]{0,0,0,0}; |
|
83 | 88 |
} |
84 | 89 |
|
85 | 90 |
public void setFlags(int flags) { |
... | ... | |
91 | 96 |
return flags; |
92 | 97 |
} |
93 | 98 |
|
94 |
public void setPoints(double[] ds) {
|
|
95 |
this.points = ds;
|
|
99 |
public void setPoint(double[] ds) { |
|
100 |
this.vertices = ds;
|
|
96 | 101 |
} |
97 | 102 |
|
98 |
public double[] getPoints() {
|
|
99 |
return points;
|
|
103 |
public double[] getPoint() { |
|
104 |
return vertices;
|
|
100 | 105 |
} |
101 | 106 |
public Object clone(){ |
102 | 107 |
DwgVertexPFaceFace obj = new DwgVertexPFaceFace(index); |
... | ... | |
109 | 114 |
DwgVertexPFaceFace myObj = (DwgVertexPFaceFace)obj; |
110 | 115 |
|
111 | 116 |
myObj.setFlags(flags); |
112 |
myObj.setPoints(points);
|
|
117 |
myObj.setPoint(vertices);
|
|
113 | 118 |
} |
114 | 119 |
|
115 |
public double[] getPoint() {
|
|
116 |
return points;
|
|
120 |
public int[] getVerticesidx() {
|
|
121 |
return verticesidx;
|
|
117 | 122 |
} |
118 | 123 |
|
124 |
public void setVerticesidx(int[] verticesidx) { |
|
125 |
this.verticesidx = verticesidx; |
|
126 |
} |
|
127 |
|
|
128 |
public String toString(){ |
|
129 |
return "[1="+verticesidx[0]+", 2="+verticesidx[1]+", 3="+verticesidx[2]+", 4="+verticesidx[3]+"]"; |
|
130 |
} |
|
131 |
|
|
132 |
|
|
133 |
|
|
119 | 134 |
} |
120 | 135 |
|
Also available in: Unified diff