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

#include <CSG.h>

Collaboration diagram for Plane:

Public Types

enum  Classification { COPLANAR = 0 , FRONT = 1 , BACK = 2 , SPANNING = 3 }

Public Member Functions

 Plane ()
 Plane (const Vector &a, const Vector &b, const Vector &c)
bool ok () const
void flip ()
void splitpolygon (const Polygon &poly, std::vector< Polygon > &coplanarFront, std::vector< Polygon > &coplanarBack, std::vector< Polygon > &front, std::vector< Polygon > &back) const
Classification classify (const Vector &p) const

Public Attributes

Vector normal
double w

Detailed Description

Definition at line 142 of file CSG.h.

Member Enumeration Documentation

◆ Classification

Enumerator
COPLANAR 
FRONT 
BACK 
SPANNING 

Definition at line 164 of file CSG.h.

Constructor & Destructor Documentation

◆ Plane() [1/2]

Plane::Plane ( )

Definition at line 560 of file CSG.h.

References normal, and w.

◆ Plane() [2/2]

Plane::Plane ( const Vector & a,
const Vector & b,
const Vector & c )

Definition at line 565 of file CSG.h.

References cross(), dot(), normal, unit(), and w.

Member Function Documentation

◆ classify()

Classification Plane::classify ( const Vector & p) const
inline

Definition at line 170 of file CSG.h.

References BACK, COPLANAR, csgjs_EPSILON, dot(), FRONT, and normal.

Referenced by splitpolygon().

◆ flip()

void Plane::flip ( )
inline

Definition at line 154 of file CSG.h.

References negate().

Referenced by CSGNode::invert().

◆ ok()

bool Plane::ok ( ) const
inline

Definition at line 149 of file CSG.h.

References length().

Referenced by CSGNode::build(), and CSGNode::clippolygons().

◆ splitpolygon()

void Plane::splitpolygon ( const Polygon & poly,
std::vector< Polygon > & coplanarFront,
std::vector< Polygon > & coplanarBack,
std::vector< Polygon > & front,
std::vector< Polygon > & back ) const

Member Data Documentation

◆ normal

Vector Plane::normal

Definition at line 143 of file CSG.h.

Referenced by classify(), Plane(), Plane(), and splitpolygon().

◆ w

double Plane::w

Definition at line 144 of file CSG.h.

Referenced by Plane(), Plane(), and splitpolygon().


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