Skip to content

Commit

Permalink
Fix Win32 build (thanks wmayer for the issue) + Mefisto 2D Mesh gener…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
vejmarie authored and wwmayer committed Jul 11, 2016
1 parent bcb99fb commit d344319
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/3rdParty/salomesmesh/inc/aptrte.h
Expand Up @@ -52,6 +52,7 @@
#else
#define MEFISTO2D_EXPORT __declspec( dllimport )
#endif
#define F2C_BUILD
#else
#define MEFISTO2D_EXPORT
#endif
Expand Down
10 changes: 5 additions & 5 deletions src/3rdParty/salomesmesh/src/MEFISTO2/aptrte.cpp
Expand Up @@ -41,9 +41,9 @@ extern "C"
__stdcall
#endif
#endif
areteideale()//( R3 xyz, R3 direction )
areteideale(R &_areteideale)
{
return aretemaxface_;
_areteideale = aretemaxface_;
}
}
//calcul de la longueur ideale de l'arete au sommet xyz (z ici inactif)
Expand Down Expand Up @@ -245,7 +245,7 @@ void aptrte( Z nutysu, R aretmx,
ns0 = nudslf[n-1];
mnpxyd[ns0].x = uvslf[ns0].x;
mnpxyd[ns0].y = uvslf[ns0].y;
mnpxyd[ns0].z = areteideale();//( mnpxyd[ns0], direction );
mnpxyd[ns0].z = areteideale((R &)mnpxyd[ns0].z);//( mnpxyd[ns0], direction );
// MESSAGE("Sommet " << ns0 << ": " << mnpxyd[ns0].x
// << " " << mnpxyd[ns0].y << " longueur arete=" << mnpxyd[ns0].z);

Expand Down Expand Up @@ -300,7 +300,7 @@ void aptrte( Z nutysu, R aretmx,
//fin ajout 5/10/2006 ................................................
mnpxyd[ns].x = uvslf[ns].x;
mnpxyd[ns].y = uvslf[ns].y;
mnpxyd[ns].z = areteideale();//( mnpxyd[ns], direction );
mnpxyd[ns].z = areteideale((R &)mnpxyd[ns].z);//( mnpxyd[ns], direction );
// MESSAGE("Sommet " << ns << ": " << mnpxyd[ns].x
// << " " << mnpxyd[ns].y << " longueur arete=" << mnpxyd[ns].z);

Expand Down Expand Up @@ -392,7 +392,7 @@ void aptrte( Z nutysu, R aretmx,
//les 2 coordonnees du point i de sommet nbs
mnpxyd[ns1].x = uvpti[i].x;
mnpxyd[ns1].y = uvpti[i].y;
mnpxyd[ns1].z = areteideale();//( mnpxyd[ns1], direction );
mnpxyd[ns1].z = areteideale((R &)mnpxyd[ns1].z);//( mnpxyd[ns1], direction );
//le numero i du point interne
mnslig[ns1] = i+1;
ns1++;
Expand Down

0 comments on commit d344319

Please sign in to comment.