Skip to content

Commit

Permalink
Improve clipping planes JSON layout
Browse files Browse the repository at this point in the history
  • Loading branch information
tribal-tec committed Aug 13, 2018
1 parent 12f3a54 commit 8a126a2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion brayns/common/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ enum class CameraMode
* in absolute value of the coordinate system. Values are stored
* in a Vector4, with the following order: nx, ny, nz and d
*/
using ClipPlane = Vector4f;
using ClipPlane = std::array<float, 4>;
using ClipPlanes = std::vector<ClipPlane>;

struct RenderInput
Expand Down
7 changes: 0 additions & 7 deletions plugins/RocketsPlugin/jsonSerialization.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,6 @@ inline void init(brayns::Renderer::PickResult* p, ObjectHandler* h)
h->set_flags(Flags::DisallowUnknownKey);
}

inline void init(brayns::ClipPlane* c, ObjectHandler* h)
{
h->add_property("normal", Vector3fArray(*c));
h->add_property("d", &c->array[3]);
h->set_flags(Flags::DisallowUnknownKey);
}

inline void init(brayns::Camera* c, ObjectHandler* h)
{
h->add_property("look_at", Vector3fArray(c->_target), Flags::Optional);
Expand Down

0 comments on commit 8a126a2

Please sign in to comment.