gmsh-TingyuanDoc
0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
OCCVertex.h
Go to the documentation of this file.
1
// Gmsh - Copyright (C) 1997-2022 C. Geuzaine, J.-F. Remacle
2
//
3
// See the LICENSE.txt file in the Gmsh root directory for license information.
4
// Please report all issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
5
6
#ifndef OCC_VERTEX_H
7
#define OCC_VERTEX_H
8
9
#include "GmshConfig.h"
10
#include "
GModel.h
"
11
#include "
GVertex.h
"
12
13
#if defined(HAVE_OCC)
14
15
#include <TopoDS_Vertex.hxx>
16
17
class
OCCVertex :
public
GVertex
{
18
private
:
19
TopoDS_Vertex _v;
20
double
_x, _y, _z;
21
22
public
:
23
OCCVertex(
GModel
*m, TopoDS_Vertex v,
int
num,
double
lc =
MAX_LC
);
24
virtual
~OCCVertex() {}
25
virtual
GPoint
point
()
const
{
return
GPoint
(
x
(),
y
(),
z
()); }
26
virtual
double
x
()
const
{
return
_x; }
27
virtual
double
y
()
const
{
return
_y; }
28
virtual
double
z
()
const
{
return
_z; }
29
virtual
void
setPosition
(
GPoint
&p);
30
virtual
ModelType
getNativeType
()
const
{
return
OpenCascadeModel
; }
31
virtual
void
*
getNativePtr
()
const
{
return
(
void
*)&_v; }
32
virtual
SPoint2
reparamOnFace
(
const
GFace
*gf,
int
)
const
;
33
TopoDS_Vertex getShape() {
return
_v; }
34
};
35
36
#endif
37
38
#endif
GVertex::z
virtual double z() const =0
GVertex::setPosition
virtual void setPosition(GPoint &p)
Definition:
GVertex.cpp:32
GFace
Definition:
GFace.h:33
SPoint2
Definition:
SPoint2.h:12
GEntity::OpenCascadeModel
@ OpenCascadeModel
Definition:
GEntity.h:82
GEntity::getNativeType
virtual ModelType getNativeType() const
Definition:
GEntity.h:268
MAX_LC
#define MAX_LC
Definition:
GEntity.h:19
GPoint
Definition:
GPoint.h:13
GEntity::getNativePtr
virtual void * getNativePtr() const
Definition:
GEntity.h:271
GVertex
Definition:
GVertex.h:23
GModel
Definition:
GModel.h:44
GVertex::x
virtual double x() const =0
GVertex::y
virtual double y() const =0
GVertex.h
GVertex::reparamOnFace
virtual SPoint2 reparamOnFace(const GFace *gf, int) const
Definition:
GVertex.cpp:49
GModel.h
GVertex::point
virtual GPoint point() const =0
src
geo
OCCVertex.h
Generated by
1.8.18