mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 09:02:06 +00:00
Make 2 TriangleMesh methods const
Since they can be.
This commit is contained in:
@@ -217,12 +217,12 @@ bool TriangleMesh::ReadSTLFile(const char *input_file, bool repair, ImportstlPro
|
||||
return from_stl(stl, repair);
|
||||
}
|
||||
|
||||
bool TriangleMesh::write_ascii(const char* output_file)
|
||||
bool TriangleMesh::write_ascii(const char* output_file) const
|
||||
{
|
||||
return its_write_stl_ascii(output_file, "", this->its);
|
||||
}
|
||||
|
||||
bool TriangleMesh::write_binary(const char* output_file)
|
||||
bool TriangleMesh::write_binary(const char* output_file) const
|
||||
{
|
||||
return its_write_stl_binary(output_file, "", this->its);
|
||||
}
|
||||
|
||||
@@ -95,8 +95,8 @@ public:
|
||||
void clear() { this->its.clear(); this->m_stats.clear(); }
|
||||
bool from_stl(stl_file& stl, bool repair = true);
|
||||
bool ReadSTLFile(const char *input_file, bool repair = true, ImportstlProgressFn stlFn = nullptr, int custom_header_length = 80);
|
||||
bool write_ascii(const char* output_file);
|
||||
bool write_binary(const char* output_file);
|
||||
bool write_ascii(const char* output_file) const;
|
||||
bool write_binary(const char* output_file) const;
|
||||
float volume();
|
||||
void WriteOBJFile(const char* output_file) const;
|
||||
void scale(float factor);
|
||||
|
||||
Reference in New Issue
Block a user