133InterfaceElement3dTrLin :: computeVolumeAround(
GaussPoint *gp)
137 double determinant, weight, thickness, volume;
139 std::vector< FloatArray > lncp(3);
142 for (
int i = 1; i <= 3; i++ ) {
143 lncp[ i - 1 ].beProductOf(lcs, this->
giveNode(i)->giveCoordinates());
149 volume = determinant * weight * thickness;
184 xl.at(1) = this->
giveNode(2)->giveCoordinate(1) - this->
giveNode(1)->giveCoordinate(1);
185 xl.at(2) = this->
giveNode(2)->giveCoordinate(2) - this->
giveNode(1)->giveCoordinate(2);
186 xl.at(3) = this->
giveNode(2)->giveCoordinate(3) - this->
giveNode(1)->giveCoordinate(3);
191 t2.
at(1) = this->
giveNode(3)->giveCoordinate(1) - this->
giveNode(1)->giveCoordinate(1);
192 t2.
at(2) = this->
giveNode(3)->giveCoordinate(2) - this->
giveNode(1)->giveCoordinate(2);
193 t2.
at(3) = this->
giveNode(3)->giveCoordinate(3) - this->
giveNode(1)->giveCoordinate(3);
196 zl.beVectorProductOf(xl, t2);
200 yl.beVectorProductOf(zl, xl);
203 for (
int i = 1; i <= 3; i++ ) {
204 answer.
at(1, i) = xl.at(i);
205 answer.
at(2, i) = yl.at(i);
206 answer.
at(3, i) = zl.at(i);
237 if ( !
gc.testElementGraphicActivity(
this) ) {
242 EASValsSetColor(
gc.getElementColor() );
243 EASValsSetEdgeColor(
gc.getElementEdgeColor() );
244 EASValsSetEdgeFlag(
true);
246 p [ 0 ].x = ( FPNum ) this->
giveNode(1)->giveCoordinate(1);
247 p [ 0 ].y = ( FPNum ) this->
giveNode(1)->giveCoordinate(2);
248 p [ 0 ].z = ( FPNum ) this->
giveNode(1)->giveCoordinate(3);
249 p [ 1 ].x = ( FPNum ) this->
giveNode(2)->giveCoordinate(1);
250 p [ 1 ].y = ( FPNum ) this->
giveNode(2)->giveCoordinate(2);
251 p [ 1 ].z = ( FPNum ) this->
giveNode(2)->giveCoordinate(3);
252 p [ 2 ].x = ( FPNum ) this->
giveNode(3)->giveCoordinate(1);
253 p [ 2 ].y = ( FPNum ) this->
giveNode(3)->giveCoordinate(2);
254 p [ 2 ].z = ( FPNum ) this->
giveNode(3)->giveCoordinate(3);
256 go = CreateTriangle3D(p);
257 EGWithMaskChangeAttributes(WIDTH_MASK | COLOR_MASK | EDGE_COLOR_MASK | EDGE_FLAG_MASK | LAYER_MASK, go);
258 EGAttachObject(go, ( EObjectP )
this);
259 EMAddGraphicsToModel(ESIModel(), go);
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]
#define OOFEG_RAW_GEOMETRY_WIDTH
#define OOFEG_RAW_GEOMETRY_LAYER