190 if ( !
gc.testElementGraphicActivity(
this) ) {
195 EASValsSetColor(
gc.getElementColor() );
196 EASValsSetEdgeColor(
gc.getElementEdgeColor() );
197 EASValsSetEdgeFlag(
true);
200 p [ 0 ].x = ( FPNum ) this->
giveNode(1)->giveCoordinate(1);
201 p [ 0 ].y = ( FPNum ) this->
giveNode(1)->giveCoordinate(2);
203 p [ 1 ].x = ( FPNum ) this->
giveNode(2)->giveCoordinate(1);
204 p [ 1 ].y = ( FPNum ) this->
giveNode(2)->giveCoordinate(2);
206 p [ 2 ].x = ( FPNum ) this->
giveNode(3)->giveCoordinate(1);
207 p [ 2 ].y = ( FPNum ) this->
giveNode(3)->giveCoordinate(2);
210 go = CreateTriangle3D(p);
211 EGWithMaskChangeAttributes(WIDTH_MASK | COLOR_MASK | EDGE_COLOR_MASK | EDGE_FLAG_MASK | LAYER_MASK, go);
212 EGAttachObject(go, ( EObjectP )
this);
213 EMAddGraphicsToModel(ESIModel(), go);
221 double defScale =
gc.getDefScale();
223 if ( !
gc.testElementGraphicActivity(
this) ) {
228 EASValsSetColor(
gc.getDeformedElementColor() );
229 EASValsSetEdgeColor(
gc.getElementEdgeColor() );
230 EASValsSetEdgeFlag(
true);
232 p [ 0 ].x = ( FPNum ) this->
giveNode(1)->giveUpdatedCoordinate(1, tStep, defScale);
233 p [ 0 ].y = ( FPNum ) this->
giveNode(1)->giveUpdatedCoordinate(2, tStep, defScale);
235 p [ 1 ].x = ( FPNum ) this->
giveNode(2)->giveUpdatedCoordinate(1, tStep, defScale);
236 p [ 1 ].y = ( FPNum ) this->
giveNode(2)->giveUpdatedCoordinate(2, tStep, defScale);
238 p [ 2 ].x = ( FPNum ) this->
giveNode(3)->giveUpdatedCoordinate(1, tStep, defScale);
239 p [ 2 ].y = ( FPNum ) this->
giveNode(3)->giveUpdatedCoordinate(2, tStep, defScale);
242 go = CreateTriangle3D(p);
243 EGWithMaskChangeAttributes(WIDTH_MASK | COLOR_MASK | EDGE_COLOR_MASK | EDGE_FLAG_MASK | LAYER_MASK, go);
244 EMAddGraphicsToModel(ESIModel(), go);
250 int i, indx, result = 0;
254 double s [ 3 ], defScale;
256 if ( !
gc.testElementGraphicActivity(
this) ) {
276 indx =
gc.giveIntVarIndx();
278 s [ 0 ] = v1.
at(indx);
279 s [ 1 ] = v2.
at(indx);
280 s [ 2 ] = v3.
at(indx);
285 for ( i = 0; i < 3; i++ ) {
286 if (
gc.getInternalVarsDefGeoFlag() ) {
288 defScale =
gc.getDefScale();
289 p [ i ].x = ( FPNum ) this->
giveNode(i + 1)->giveUpdatedCoordinate(1, tStep, defScale);
290 p [ i ].y = ( FPNum ) this->
giveNode(i + 1)->giveUpdatedCoordinate(2, tStep, defScale);
293 p [ i ].x = ( FPNum ) this->
giveNode(i + 1)->giveCoordinate(1);
294 p [ i ].y = ( FPNum ) this->
giveNode(i + 1)->giveCoordinate(2);
300 gc.updateFringeTableMinMax(s, 3);
301 tr = CreateTriangleWD3D(p, s [ 0 ], s [ 1 ], s [ 2 ]);
302 EGWithMaskChangeAttributes(LAYER_MASK, tr);
303 EMAddGraphicsToModel(ESIModel(), tr);
305 double landScale =
gc.getLandScale();
307 for ( i = 0; i < 3; i++ ) {
308 if (
gc.getInternalVarsDefGeoFlag() ) {
310 defScale =
gc.getDefScale();
311 p [ i ].x = ( FPNum ) this->
giveNode(i + 1)->giveUpdatedCoordinate(1, tStep, defScale);
312 p [ i ].y = ( FPNum ) this->
giveNode(i + 1)->giveUpdatedCoordinate(2, tStep, defScale);
313 p [ i ].z = s [ i ] * landScale;
315 p [ i ].x = ( FPNum ) this->
giveNode(i + 1)->giveCoordinate(1);
316 p [ i ].y = ( FPNum ) this->
giveNode(i + 1)->giveCoordinate(2);
317 p [ i ].z = s [ i ] * landScale;
322 EASValsSetColor(
gc.getDeformedElementColor() );
324 EASValsSetFillStyle(FILL_SOLID);
325 tr = CreateTriangle3D(p);
326 EGWithMaskChangeAttributes(WIDTH_MASK | COLOR_MASK | FILL_MASK | LAYER_MASK, tr);
328 gc.updateFringeTableMinMax(s, 3);
329 EASValsSetFillStyle(FILL_SOLID);
330 tr = CreateTriangleWD3D(p, s [ 0 ], s [ 1 ], s [ 2 ]);
331 EGWithMaskChangeAttributes(FILL_MASK | LAYER_MASK, tr);
334 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