mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-27 06:10:34 +05:00
6a8e03e286
uninitilized member pointer memory Thx https://github.com/NGSolve/netgen/pull/128 StefanBruens
59 lines
1.4 KiB
C++
59 lines
1.4 KiB
C++
#ifndef FILE_VSSTL
|
|
#define FILE_VSSTL
|
|
|
|
/**************************************************************************/
|
|
/* File: vsstl.hpp */
|
|
/* Author: Joachim Schoeberl */
|
|
/* Date: 05. Jan. 2011 */
|
|
/**************************************************************************/
|
|
|
|
namespace netgen
|
|
{
|
|
|
|
class NGGUI_API VisualSceneSTLGeometry : public VisualScene
|
|
{
|
|
NgArray<int> trilists;
|
|
class STLGeometry * stlgeometry;
|
|
|
|
public:
|
|
VisualSceneSTLGeometry ();
|
|
virtual ~VisualSceneSTLGeometry ();
|
|
void SetGeometry (class STLGeometry * astlgeometry) { stlgeometry = astlgeometry; }
|
|
|
|
virtual void BuildScene (int zoomall = 0);
|
|
virtual void DrawScene ();
|
|
};
|
|
|
|
|
|
class NGGUI_API VisualSceneSTLMeshing : public VisualScene
|
|
{
|
|
NgArray<int> trilists;
|
|
int selecttrig, nodeofseltrig;
|
|
class STLGeometry * stlgeometry;
|
|
|
|
public:
|
|
VisualSceneSTLMeshing ();
|
|
virtual ~VisualSceneSTLMeshing ();
|
|
|
|
void SetGeometry (class STLGeometry * astlgeometry)
|
|
{
|
|
stlgeometry = astlgeometry;
|
|
stlgeometry->SetSelectTrig(selecttrig);
|
|
stlgeometry->SetNodeOfSelTrig(nodeofseltrig);
|
|
}
|
|
|
|
virtual void BuildScene (int zoomall = 0);
|
|
virtual void DrawScene ();
|
|
virtual void MouseDblClick (int px, int py);
|
|
|
|
int seltria;
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|