File tree Expand file tree Collapse file tree
include/geode/stochastic/sampling/direct/object_set_sampler Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,12 +107,21 @@ namespace geode
107107 double move_ratio = 0.1 ;
108108 };
109109
110- template < index_t dimension >
111- std::unique_ptr< ObjectSetSampler< Point< dimension > > >
112- build_objectset_sampler ( const SpatialDomain< dimension >& domain,
113- const ObjectSamplerConfig< Point< dimension > >& config )
110+ template <>
111+ std::unique_ptr< ObjectSetSampler< Point2D > >
112+ build_objectset_sampler< Point2D >( const SpatialDomain< 2 >& domain,
113+ const ObjectSamplerConfig< Point2D >& config )
114+ {
115+ return std::make_unique< UniformPointSetSampler< 2 > >(
116+ domain, config );
117+ }
118+
119+ template <>
120+ std::unique_ptr< ObjectSetSampler< Point3D > >
121+ build_objectset_sampler< Point3D >( const SpatialDomain< 3 >& domain,
122+ const ObjectSamplerConfig< Point3D >& config )
114123 {
115- return std::make_unique< UniformPointSetSampler< dimension > >(
124+ return std::make_unique< UniformPointSetSampler< 3 > >(
116125 domain, config );
117126 }
118127
You can’t perform that action at this time.
0 commit comments