#include <bcell2d_list.hpp>
Definition at line 103 of file bcell2d_list.hpp.
typedef bounding_box<C,V> BoundingBox |
Definition at line 105 of file bcell2d_list.hpp.
Definition at line 106 of file bcell2d_list.hpp.
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 }