OOFEM 3.0
Loading...
Searching...
No Matches
CSGNode Struct Reference

#include <CSG.h>

Collaboration diagram for CSGNode:

Public Member Functions

 CSGNode ()
 CSGNode (const std::vector< Polygon > &list)
 ~CSGNode ()
CSGNodeclone () const
void clipto (const CSGNode *other)
void invert ()
void build (const std::vector< Polygon > &Polygon)
std::vector< Polygonclippolygons (const std::vector< Polygon > &list) const
std::vector< Polygonallpolygons () const

Public Attributes

std::vector< Polygonpolygons
CSGNodefront
CSGNodeback
Plane plane

Detailed Description

Definition at line 518 of file CSG.h.

Constructor & Destructor Documentation

◆ CSGNode() [1/2]

CSGNode::CSGNode ( )

Definition at line 870 of file CSG.h.

References back, and front.

Referenced by allpolygons(), build(), clippolygons(), clipto(), clone(), invert(), and ~CSGNode().

◆ CSGNode() [2/2]

CSGNode::CSGNode ( const std::vector< Polygon > & list)

Definition at line 875 of file CSG.h.

References back, build(), and front.

◆ ~CSGNode()

CSGNode::~CSGNode ( )

Definition at line 881 of file CSG.h.

References back, CSGNode(), and front.

Member Function Documentation

◆ allpolygons()

std::vector< Polygon > CSGNode::allpolygons ( ) const

Definition at line 783 of file CSG.h.

References back, CSGNode(), front, and polygons.

Referenced by csg_intersect(), csg_subtract(), and csg_union().

◆ build()

void CSGNode::build ( const std::vector< Polygon > & Polygon)

Definition at line 833 of file CSG.h.

References back, CSGNode(), front, Plane::ok(), plane, polygons, and Plane::splitpolygon().

Referenced by csg_intersect(), csg_subtract(), csg_union(), and CSGNode().

◆ clippolygons()

std::vector< Polygon > CSGNode::clippolygons ( const std::vector< Polygon > & list) const

Definition at line 730 of file CSG.h.

References back, CSGNode(), front, Plane::ok(), plane, and Plane::splitpolygon().

Referenced by clipto().

◆ clipto()

void CSGNode::clipto ( const CSGNode * other)

Definition at line 766 of file CSG.h.

References back, clippolygons(), CSGNode(), front, and polygons.

Referenced by csg_intersect(), csg_subtract(), and csg_union().

◆ clone()

CSGNode * CSGNode::clone ( ) const

Definition at line 803 of file CSG.h.

References back, clone(), CSGNode(), front, plane, and polygons.

Referenced by clone(), csg_intersect(), csg_subtract(), and csg_union().

◆ invert()

void CSGNode::invert ( )

Definition at line 709 of file CSG.h.

References back, CSGNode(), Plane::flip(), front, plane, and polygons.

Referenced by csg_intersect(), csg_subtract(), and csg_union().

Member Data Documentation

◆ back

CSGNode* CSGNode::back

Definition at line 521 of file CSG.h.

Referenced by allpolygons(), build(), clippolygons(), clipto(), clone(), CSGNode(), CSGNode(), invert(), and ~CSGNode().

◆ front

CSGNode* CSGNode::front

Definition at line 520 of file CSG.h.

Referenced by allpolygons(), build(), clippolygons(), clipto(), clone(), CSGNode(), CSGNode(), invert(), and ~CSGNode().

◆ plane

Plane CSGNode::plane

Definition at line 522 of file CSG.h.

Referenced by build(), clippolygons(), clone(), and invert().

◆ polygons

std::vector<Polygon> CSGNode::polygons

Definition at line 519 of file CSG.h.

Referenced by allpolygons(), build(), clipto(), clone(), and invert().


The documentation for this struct was generated from the following file:

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011