Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
805 changes: 805 additions & 0 deletions CHANGELOG.rst

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.16)
project(iridescence VERSION 1.0.0 LANGUAGES C CXX)
project(iridescence VERSION 1.0.1 LANGUAGES C CXX)

option(BUILD_EXAMPLES "Build examples" OFF)
option(BUILD_PYTHON_BINDINGS "Build python bindings" OFF)
Expand Down
3 changes: 3 additions & 0 deletions include/guik/viewer/light_viewer_context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ class LightViewerContext {
/// @brief Set axis of color mapping for RAINBOW mode.
void set_rainbow_axis(const Eigen::Vector3f& axis);

/// @brief Set range of color mapping for VERTEX_COLORMAP mode.
void set_colormap_range(const Eigen::Vector2f& minmax);

/// @brief Set point shape properties.
/// @param point_size Point size
/// @param metric If true, point size is in the metric unit [m], otherwise in pixel unit.
Expand Down
3 changes: 3 additions & 0 deletions include/guik/viewer/shader_setting.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,9 @@ struct ShaderSetting {
/// @brief Set RAINBOW coloring axis.
ShaderSetting& set_rainbow_axis(const Eigen::Vector3f& axis);

/// @brief Set VERTEX_COLORMAP color range.
ShaderSetting& set_colormap_range(const Eigen::Vector2f& minmax);

// Point size and scale
/// @brief Get point size scale factor.
float point_scale() const;
Expand Down
2 changes: 1 addition & 1 deletion package.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<package format="2">
<name>iridescence</name>
<version>1.0.0</version>
<version>1.0.1</version>
<description>A point cloud viewer for rapid prototyping of 3D algorithms</description>

<maintainer email="[email protected]">k.koide</maintainer>
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="pyridescence",
version="1.0.0",
version="1.0.1",
author="Kenji Koide",
author_email="[email protected]",
description="3D visualization library for rapid prototyping of 3D algorithms",
Expand Down
4 changes: 4 additions & 0 deletions src/guik/viewer/light_viewer_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,10 @@ void LightViewerContext::set_rainbow_axis(const Eigen::Vector3f& axis) {
shader_setting().set_rainbow_axis(axis);
}

void LightViewerContext::set_colormap_range(const Eigen::Vector2f& minmax) {
shader_setting().set_colormap_range(minmax);
}

void LightViewerContext::set_point_shape(float point_size, bool metric, bool circle) {
shader_setting().set_point_shape(point_size, metric, circle);
}
Expand Down
4 changes: 4 additions & 0 deletions src/guik/viewer/shader_setting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ ShaderSetting& ShaderSetting::set_rainbow_axis(const Eigen::Vector3f& axis) {
return add("colormap_axis", axis);
}

ShaderSetting& ShaderSetting::set_colormap_range(const Eigen::Vector2f& minmax) {
return add("cmap_range", minmax);
}

float ShaderSetting::point_scale() const {
auto& p = params[1];
return p.get_value<float>();
Expand Down
Loading