NIS_Surface Class Reference
#include <NIS_Surface.hxx>
Detailed Description
This class describes a presentation of a meshed surface.
Constructor & Destructor Documentation
| NIS_Surface::NIS_Surface |
( |
const Handle_Poly_Triangulation & |
theTri, |
|
|
const Handle_NCollection_BaseAllocator & |
theAlloc = 0L | |
|
) |
| | |
| NIS_Surface::NIS_Surface |
( |
const TopoDS_Shape & |
theShape, |
|
|
const Handle_NCollection_BaseAllocator & |
theAlloc = 0L | |
|
) |
| | |
Constructor. Creates the presentation of all faces in 'theShape' object. theShape Source geometry. It should contain triangulations inside.
- Parameters:
-
| theAlloc | Allocator used for nodes and triangles in this presentation. |
| virtual NIS_Surface::~NIS_Surface |
( |
|
) |
[virtual] |
Member Function Documentation
| virtual void NIS_Surface::computeBox |
( |
|
) |
[protected, virtual] |
Compute normal to the surface at the node with the given index. Returns true if the vertex is artificial at this node.
| virtual Handle_NIS_Drawer NIS_Surface::DefaultDrawer |
( |
|
) |
const [virtual] |
Intersect the InteractiveObject geometry with an oriented box.
- Parameters:
-
| theBox | 3D box of selection |
| theTrf | Position/Orientation of the box. |
| isFull | True if full inclusion is required, False - if partial. |
- Returns:
- True if the InteractiveObject geometry intersects the box or is inside it
Reimplemented from NIS_InteractiveObject.
Intersect the InteractiveObject geometry with a line/ray.
- Parameters:
-
| theAxis | The line or ray in 3D space. |
| theOver | Half-thickness of the selecting line - ignored. |
- Returns:
- If the return value is more than 0.1*RealLast() then no intersection is detected. Otherwise returns the coordinate of the nearest intersection on the ray. May be negative.
Implements NIS_InteractiveObject.
Query the number of nodes.
Query the node by its index.
- Returns:
- pointer to array of 3 Standard_ShortReal values (X,Y,Z coordinates)
Query the normal vector at the given triangulation node (by index)
- Returns:
- pointer to array of 3 Standard_ShortReal values (X,Y,Z coordinates)
Query the number of triangles.
Set the color for presentation of the back side of triangles.
- Parameters:
-
| theColor | New color to use for the presentation. |
Set the normal color for presentation.
- Parameters:
-
| theColor | New color to use for the presentation. |
| void NIS_Surface::SetPolygonOffset |
( |
const Standard_Real |
theValue |
) |
|
Set the offset for the presentation.
- Parameters:
-
| theValue | New offset to use for the presentation. |
| void NIS_Surface::SetTransparency |
( |
const Standard_Real |
theValue |
) |
|
Set the transparency factor.
- Parameters:
-
| theValue | 1.0 means full transparency, 0.0 means opaque. Valid quantities are in this interval. |
Reimplemented from NIS_InteractiveObject.
Query the triangle by its index.
- Returns:
- pointer to array of 3 Standard_Integer values (nodes 0, 1, 2)
The documentation for this class was generated from the following file: