ImplicitSurfaceMapping.cpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include <sofa/component/mapping/ImplicitSurfaceMapping.inl>
00026 #include <sofa/defaulttype/Vec3Types.h>
00027 #include <sofa/core/ObjectFactory.h>
00028 #include <sofa/core/componentmodel/behavior/MappedModel.h>
00029 #include <sofa/core/componentmodel/behavior/MechanicalState.h>
00030 #include <sofa/core/componentmodel/behavior/MechanicalMapping.h>
00031
00032 namespace sofa
00033 {
00034
00035 namespace component
00036 {
00037
00038 namespace mapping
00039 {
00040
00041 using namespace sofa::defaulttype;
00042 using namespace core::componentmodel::behavior;
00043
00044 SOFA_DECL_CLASS(ImplicitSurfaceMapping)
00045
00046
00047 int ImplicitSurfaceMappingClass = core::RegisterObject("Compute an iso-surface from a set of particles")
00048 #ifndef SOFA_FLOAT
00049 .add< ImplicitSurfaceMapping< State<Vec3dTypes>, MappedModel<Vec3dTypes> > >()
00050
00051 .add< ImplicitSurfaceMapping< State<Vec3dTypes>, MappedModel<ExtVec3fTypes> > >()
00052 #endif
00053 #ifndef SOFA_DOUBLE
00054 .add< ImplicitSurfaceMapping< State<Vec3fTypes>, MappedModel<Vec3fTypes> > >()
00055
00056 .add< ImplicitSurfaceMapping< State<Vec3fTypes>, MappedModel<ExtVec3fTypes> > >()
00057 #endif
00058
00059
00060 #ifndef SOFA_FLOAT
00061 #ifndef SOFA_DOUBLE
00062 .add< ImplicitSurfaceMapping< State<Vec3fTypes>, MappedModel<Vec3dTypes> > >()
00063 .add< ImplicitSurfaceMapping< State<Vec3dTypes>, MappedModel<Vec3fTypes> > >()
00064 #endif
00065 #endif
00066 ;
00067
00068
00069 #ifndef SOFA_FLOAT
00070 template class ImplicitSurfaceMapping< State<Vec3dTypes>, MappedModel<Vec3dTypes> >;
00071
00072 template class ImplicitSurfaceMapping< State<Vec3dTypes>, MappedModel<ExtVec3fTypes> >;
00073 #endif
00074 #ifndef SOFA_DOUBLE
00075 template class ImplicitSurfaceMapping< State<Vec3fTypes>, MappedModel<Vec3fTypes> >;
00076 template class ImplicitSurfaceMapping< State<Vec3fTypes>, MappedModel<ExtVec3fTypes> >;
00077
00078 #endif
00079
00080 #ifndef SOFA_FLOAT
00081 #ifndef SOFA_DOUBLE
00082 template class ImplicitSurfaceMapping< State<Vec3dTypes>, MappedModel<Vec3fTypes> >;
00083 template class ImplicitSurfaceMapping< State<Vec3fTypes>, MappedModel<Vec3dTypes> >;
00084 #endif
00085 #endif
00086
00087
00088
00089
00090 }
00091
00092 }
00093
00094 }
00095