|
30 | 30 | namespace geode |
31 | 31 | { |
32 | 32 | BITSERY_INPUT_MESH_DIMENSION( EdgedCurve ); |
33 | | - |
34 | | - // template < index_t dimension > |
35 | | - // class OpenGeodeEdgedCurveInput : public EdgedCurveInput< dimension > |
36 | | - // { |
37 | | - // public: |
38 | | - // explicit OpenGeodeEdgedCurveInput( std::string_view filename ) |
39 | | - // : EdgedCurveInput< dimension >( filename ) |
40 | | - // { |
41 | | - // } |
42 | | - |
43 | | - // [[nodiscard]] AdditionalFiles additional_files() const final |
44 | | - // { |
45 | | - // return {}; |
46 | | - // } |
47 | | - |
48 | | - // [[nodiscard]] std::unique_ptr< EdgedCurve< dimension > > read( |
49 | | - // const MeshImpl& /*impl*/ ) final |
50 | | - // { |
51 | | - // std::ifstream file{ to_string( this->filename() ), |
52 | | - // std::ifstream::binary }; |
53 | | - // geode::OpenGeodeMeshException::check_exception( !file.fail(), |
54 | | - // nullptr, geode::OpenGeodeException::TYPE::data, |
55 | | - // "[Bitsery::read] Failed to open file: ", |
56 | | - // to_string( this->filename() ) ); |
57 | | - // TContext context{}; |
58 | | - // BitseryExtensions::register_deserialize_pcontext( |
59 | | - // std::get< 0 >( context ) ); |
60 | | - // Deserializer archive{ context, file }; |
61 | | - // // auto mesh = Mesh::create( impl ); |
62 | | - // std::unique_ptr< EdgedCurve< dimension > > mesh{ |
63 | | - // new OpenGeodeEdgedCurve< dimension >{ BITSERY::constructor } |
64 | | - // }; |
65 | | - // archive.object( |
66 | | - // dynamic_cast< OpenGeodeEdgedCurve< dimension >& >( *mesh ) ); |
67 | | - // const auto& adapter = archive.adapter(); |
68 | | - // geode::OpenGeodeMeshException::check_exception( |
69 | | - // adapter.error() == bitsery::ReaderError::NoError |
70 | | - // && adapter.isCompletedSuccessfully() |
71 | | - // && std::get< 1 >( context ).isValid(), |
72 | | - // nullptr, geode::OpenGeodeException::TYPE::internal, |
73 | | - // "[Bitsery::read] Error while reading file: ", |
74 | | - // this->filename() ); |
75 | | - // return mesh; |
76 | | - // } |
77 | | - |
78 | | - // index_t object_priority() const final |
79 | | - // { |
80 | | - // return 0; |
81 | | - // } |
82 | | - |
83 | | - // Percentage is_loadable() const final |
84 | | - // { |
85 | | - // return Percentage{ 1 }; |
86 | | - // } |
87 | | - // }; |
88 | | - // ALIAS_2D_AND_3D( OpenGeodeEdgedCurveInput ); |
89 | 33 | } // namespace geode |
0 commit comments