89 if ( !
gc.testElementGraphicActivity(
this) ) {
94 EASValsSetColor(
gc.getElementColor() );
95 EASValsSetEdgeColor(
gc.getElementEdgeColor() );
96 EASValsSetEdgeFlag(
true);
98 p [ 0 ].x = ( FPNum ) this->
giveNode(1)->giveCoordinate(1);
99 p [ 0 ].y = ( FPNum ) this->
giveNode(1)->giveCoordinate(2);
101 p [ 1 ].x = ( FPNum ) this->
giveNode(2)->giveCoordinate(1);
102 p [ 1 ].y = ( FPNum ) this->
giveNode(2)->giveCoordinate(2);
104 p [ 2 ].x = ( FPNum ) this->
giveNode(3)->giveCoordinate(1);
105 p [ 2 ].y = ( FPNum ) this->
giveNode(3)->giveCoordinate(2);
108 go = CreateTriangle3D(p);
109 EGWithMaskChangeAttributes(WIDTH_MASK | COLOR_MASK | EDGE_COLOR_MASK | EDGE_FLAG_MASK | LAYER_MASK, go);
110 EGAttachObject(go, ( EObjectP )
this);
111 EMAddGraphicsToModel(ESIModel(), go);
119 double defScale =
gc.getDefScale();
121 if ( !
gc.testElementGraphicActivity(
this) ) {
126 EASValsSetColor(
gc.getDeformedElementColor() );
127 EASValsSetEdgeColor(
gc.getElementEdgeColor() );
128 EASValsSetEdgeFlag(
true);
130 p [ 0 ].x = ( FPNum ) this->
giveNode(1)->giveUpdatedCoordinate(1, tStep, defScale);
131 p [ 0 ].y = ( FPNum ) this->
giveNode(1)->giveUpdatedCoordinate(2, tStep, defScale);
133 p [ 1 ].x = ( FPNum ) this->
giveNode(2)->giveUpdatedCoordinate(1, tStep, defScale);
134 p [ 1 ].y = ( FPNum ) this->
giveNode(2)->giveUpdatedCoordinate(2, tStep, defScale);
136 p [ 2 ].x = ( FPNum ) this->
giveNode(3)->giveUpdatedCoordinate(1, tStep, defScale);
137 p [ 2 ].y = ( FPNum ) this->
giveNode(3)->giveUpdatedCoordinate(2, tStep, defScale);
140 go = CreateTriangle3D(p);
141 EGWithMaskChangeAttributes(WIDTH_MASK | COLOR_MASK | EDGE_COLOR_MASK | EDGE_FLAG_MASK | LAYER_MASK, go);
142 EMAddGraphicsToModel(ESIModel(), go);
148 int t, n [ 3 ], i, indx, result = 0;
152 double s [ 6 ], ss [ 3 ], defScale;
154 if ( !
gc.testElementGraphicActivity(
this) ) {
159 for ( i = 1; i <= 6; i++ ) {
170 indx =
gc.giveIntVarIndx();
172 for ( i = 1; i <= 6; i++ ) {
173 s [ i - 1 ] = v [ i - 1 ].
at(indx);
179 for ( t = 1; t <= 4; t++ ) {
184 }
else if ( t == 2 ) {
188 }
else if ( t == 3 ) {
199 for ( i = 0; i < 3; i++ ) {
200 if (
gc.getInternalVarsDefGeoFlag() ) {
202 defScale =
gc.getDefScale();
203 p [ i ].x = ( FPNum ) this->
giveNode(n [ i ])->giveUpdatedCoordinate(1, tStep, defScale);
204 p [ i ].y = ( FPNum ) this->
giveNode(n [ i ])->giveUpdatedCoordinate(2, tStep, defScale);
207 p [ i ].x = ( FPNum ) this->
giveNode(n [ i ])->giveCoordinate(1);
208 p [ i ].y = ( FPNum ) this->
giveNode(n [ i ])->giveCoordinate(2);
214 ss [ 0 ] = s [ n [ 0 ] - 1 ];
215 ss [ 1 ] = s [ n [ 1 ] - 1 ];
216 ss [ 2 ] = s [ n [ 2 ] - 1 ];
217 gc.updateFringeTableMinMax(ss, 3);
218 tr = CreateTriangleWD3D(p, ss [ 0 ], ss [ 1 ], ss [ 2 ]);
219 EGWithMaskChangeAttributes(LAYER_MASK, tr);
220 EMAddGraphicsToModel(ESIModel(), tr);
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]
#define OOFEG_VARPLOT_PATTERN_LAYER
#define OOFEG_DEFORMED_GEOMETRY_LAYER
#define OOFEG_DEFORMED_GEOMETRY_WIDTH
#define OOFEG_RAW_GEOMETRY_WIDTH
#define OOFEG_RAW_GEOMETRY_LAYER