mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-09 16:27:45 -07:00
Make 2 TriangleMesh methods const
Since they can be.
This commit is contained in:
parent
2058db5ef6
commit
d63fe04dac
2 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue