2914 |
} |
} |
2915 |
} |
} |
2916 |
|
|
2917 |
const Scene& scene =omega.scene(); |
if (not(omega.isR3())) { |
2918 |
|
const Scene& scene =omega.scene(); |
2919 |
|
|
2920 |
SurfaceMeshOfTriangles omegaMesh; |
SurfaceMeshOfTriangles omegaMesh; |
2921 |
|
|
2922 |
this->generateSurfacicMesh(omega, |
this->generateSurfacicMesh(omega, |
2923 |
omegaMesh, |
omegaMesh, |
2924 |
dynamic_cast<Structured3DMesh&>(M)); |
dynamic_cast<Structured3DMesh&>(M)); |
2925 |
|
|
2926 |
MeshExtractor<SurfaceMeshOfTriangles> extractor(omegaMesh); |
MeshExtractor<SurfaceMeshOfTriangles> extractor(omegaMesh); |
2927 |
|
|
2928 |
for(POVRayReferences::iterator povRef = povRefList.begin(); |
for(POVRayReferences::iterator povRef = povRefList.begin(); |
2929 |
povRef!= povRefList.end(); ++povRef) { |
povRef!= povRefList.end(); ++povRef) { |
2930 |
const size_t meshReference = omega.reference(povRef->first); |
const size_t meshReference = omega.reference(povRef->first); |
2931 |
vrRefMesh[povRef->first] = extractor(meshReference); |
vrRefMesh[povRef->first] = extractor(meshReference); |
2932 |
|
} |
2933 |
} |
} |
|
|
|
2934 |
// Now we must create the association between bc and surfMeshes |
// Now we must create the association between bc and surfMeshes |
2935 |
|
|
2936 |
// This map contains the association between bc and the surface meshes it |
// This map contains the association between bc and the surface meshes it |
2952 |
Structured3DMesh& SMesh = dynamic_cast<Structured3DMesh&>(M); |
Structured3DMesh& SMesh = dynamic_cast<Structured3DMesh&>(M); |
2953 |
if(bs.structMesh(k)) { |
if(bs.structMesh(k)) { |
2954 |
bcMeshAssociation.addPDEBoundaryConditionAndMesh(i,&BC,&SMesh.surfaceMeshOfQuadrangles(k)); |
bcMeshAssociation.addPDEBoundaryConditionAndMesh(i,&BC,&SMesh.surfaceMeshOfQuadrangles(k)); |
2955 |
} |
} |
2956 |
} |
} |
2957 |
break; |
break; |
2958 |
} |
} |