From 38041705359575ff70b3ac369638024d71f90803 Mon Sep 17 00:00:00 2001 From: Nicholas Milef <milefn@rpi.edu> Date: Mon, 14 May 2018 16:02:22 -0400 Subject: [PATCH] ENH: implemented a clearing function for line mesh and improved description for setting the color of a material --- Source/Geometry/Mesh/imstkLineMesh.cpp | 2 ++ Source/Materials/imstkRenderMaterial.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Geometry/Mesh/imstkLineMesh.cpp b/Source/Geometry/Mesh/imstkLineMesh.cpp index b17a6ba2..ffc2d2f6 100644 --- a/Source/Geometry/Mesh/imstkLineMesh.cpp +++ b/Source/Geometry/Mesh/imstkLineMesh.cpp @@ -39,6 +39,8 @@ LineMesh::initialize(const StdVectorOfVec3d& vertices, void LineMesh::clear() { + m_lines.clear(); + m_vertexColors.clear(); } void diff --git a/Source/Materials/imstkRenderMaterial.h b/Source/Materials/imstkRenderMaterial.h index 3bd60dba..0b927123 100644 --- a/Source/Materials/imstkRenderMaterial.h +++ b/Source/Materials/imstkRenderMaterial.h @@ -82,7 +82,8 @@ public: void backfaceCullingOff(); /// - /// \brief Get/Set the diffuse color + /// \brief Get/Set the color. This affects the diffuse color directly, but + /// it affects the specular color in the case of metals. /// const Color& getColor() const; void setColor(const Color color); -- GitLab