File: f_surface.cpp

package info (click to toggle)
nurbs%2B%2B 3.0.11-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,012 kB
  • ctags: 3,023
  • sloc: cpp: 26,461; sh: 16,989; makefile: 317; ansic: 27
file content (40 lines) | stat: -rw-r--r-- 1,429 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include "surface.cpp"

namespace PLib {

  template <>
    int ParaSurface<float,2>::intersectWith(const ParaSurface<float,2> &S, Point_nD<float,2>& p, float& u, float& v, float& s, float& t, int maxI, float um, float uM, float vm, float vM) const { 
    cerr << "NOT DEFINED FOR 2D SURFACES.\n";
    return 0;
  }
  
  template <>
    int ParaSurface<float,2>::intersectWith(const ParaSurface<float,2> &S, struct InterPoint<float,2> &iter, int maxI, float um, float uM, float vm, float vM) const {
    cerr << "NOT DEFINED FOR 2D SURFACES.\n";
    return 0;
  }
  
  template <>
    int ParaSurface<float,2>::writeVRML97(ostream &fout,const Color& color,int Nu,int Nv, float uS, float uE, float vS, float vE) const{
    cerr << "NOT DEFINED FOR 2D SURFACES.\n" ; 
    return 0;
  }
  
#ifdef NO_IMPLICIT_TEMPLATES
  
  template class InterPoint<float,2> ;
  template class InterPoint<float,3> ;
  
  template class BasicList<InterPoint<float,2> > ; 
  template class BasicList<InterPoint<float,3> > ; 
  
  template class ParaSurface<float,2> ;
  template class ParaSurface<float,3> ;
  
  template void intersectSurfaces(const ParaSurface<float,2>&, const ParaSurface<float,2>&, BasicList<InterPoint<float,2> >&, int, float, float, float, float) ;
  
  template void intersectSurfaces(const ParaSurface<float,3>&, const ParaSurface<float,3>&, BasicList<InterPoint<float,3> >&, int, float, float, float, float) ;
  
#endif 

}