intersection2d_factory< C, V > Class Template Reference

#include <bcell2d_list.hpp>

List of all members.

Public Types

Public Member Functions

Static Public Member Functions


Detailed Description

template<class C, class V>
class mmx::shape::intersection2d_factory< C, V >

Definition at line 103 of file bcell2d_list.hpp.


Member Typedef Documentation

typedef bounding_box<C,V> BoundingBox

Definition at line 105 of file bcell2d_list.hpp.

typedef bcell2d<C,V>::Point Point

Definition at line 106 of file bcell2d_list.hpp.


Member Function Documentation

void compute ( Seq< Point * > &  res,
geometric< V > *  c1,
geometric< V > *  c2,
const BoundingBox bx 
) [inline]

Definition at line 115 of file bcell2d_list.hpp.

References mmx::assign(), Cell2dAlgebraicCurve, and mmx::shape::intersection().

00115                                                                                 {
00116     
00117     if(Cell2dAlgebraicCurve * ca1 = dynamic_cast<Cell2dAlgebraicCurve *>(c1)) {
00118       if(Cell2dAlgebraicCurve * ca2 = dynamic_cast<Cell2dAlgebraicCurve *>(c2)) {
00119 
00120         typedef polynomial< double, with<Bernstein> > MultivariateDenseBernstein;
00121         MultivariateDenseBernstein p1, p2;
00122         let::assign(p1.rep(), ca1->m_polynomial.rep() );
00123         let::assign(p2.rep(), ca2->m_polynomial.rep() );
00124         Solver::intersection(res, p1, p2, bx);
00125       }
00126     }
00127   }

static intersection2d_factory<C,V>* instance ( void   )  [inline, static]

Definition at line 107 of file bcell2d_list.hpp.

References Intersection2dFactory.

00107                                                 {
00108 
00109         if(!m_instance)
00110             m_instance = new Intersection2dFactory ;
00111 
00112         return m_instance ;
00113     }


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

Generated on 6 Dec 2012 for shape by  doxygen 1.6.1