<commit_before>#include "CVolumeSceneObject.h"

#include <ionWindow.h>

#include "CProgramContext.h"


CVolumeSceneObject::SControl::SControl()
	: Mode(2), SliceAxis(1.f, 0.f, 0.f),
	LocalRange(0.2f), MinimumAlpha(0.1f),
	EmphasisLocation(0.9f), AlphaIntensity(5.f),
	StepSize(100.f), Debug(false)
{}

CVolumeSceneObject::CVolumeSceneObject()
	: VolumeCube(0), VolumeBuffer(0), VolumeTarget(0), ShowVolume(0), SceneManager(CApplication::get().getSceneManager()), Shader(0)
{
	setCullingEnabled(false);

	// Setup volume cube
	VolumeCube = new CMesh();
    CMesh::SMeshBuffer * Mesh = new CMesh::SMeshBuffer();

    Mesh->Vertices.resize(24);
    Mesh->Vertices[0].Position = SVector3f(-0.5, -0.5, -0.5);
    Mesh->Vertices[1].Position = SVector3f(-0.5,  0.5, -0.5);
    Mesh->Vertices[2].Position = SVector3f( 0.5,  0.5, -0.5);
    Mesh->Vertices[3].Position = SVector3f( 0.5, -0.5, -0.5);
	Mesh->Vertices[0].Color = SColorf(0, 0, 0);
	Mesh->Vertices[1].Color = SColorf(0, 1, 0);
	Mesh->Vertices[2].Color = SColorf(1, 1, 0);
	Mesh->Vertices[3].Color = SColorf(1, 0, 0);

    Mesh->Vertices[4].Position = SVector3f( 0.5, -0.5, -0.5);
    Mesh->Vertices[5].Position = SVector3f( 0.5,  0.5, -0.5);<commit_msg>+ Fixed initial volume appearance<commit_after>#include "CVolumeSceneObject.h"

#include <ionWindow.h>

#include "CProgramContext.h"


CVolumeSceneObject::SControl::SControl()
	: Mode(0), SliceAxis(1.f, 0.f, 0.f),
	LocalRange(0.2f), MinimumAlpha(0.1f),
	EmphasisLocation(0.9f), AlphaIntensity(1.f),
	StepSize(100.f), Debug(false)
{}

CVolumeSceneObject::CVolumeSceneObject()
	: VolumeCube(0), VolumeBuffer(0), VolumeTarget(0), ShowVolume(0), SceneManager(CApplication::get().getSceneManager()), Shader(0)
{
	setCullingEnabled(false);

	// Setup volume cube
	VolumeCube = new CMesh();
    CMesh::SMeshBuffer * Mesh = new CMesh::SMeshBuffer();

    Mesh->Vertices.resize(24);
    Mesh->Vertices[0].Position = SVector3f(-0.5, -0.5, -0.5);
    Mesh->Vertices[1].Position = SVector3f(-0.5,  0.5, -0.5);
    Mesh->Vertices[2].Position = SVector3f( 0.5,  0.5, -0.5);
    Mesh->Vertices[3].Position = SVector3f( 0.5, -0.5, -0.5);
	Mesh->Vertices[0].Color = SColorf(0, 0, 0);
	Mesh->Vertices[1].Color = SColorf(0, 1, 0);
	Mesh->Vertices[2].Color = SColorf(1, 1, 0);
	Mesh->Vertices[3].Color = SColorf(1, 0, 0);

    Mesh->Vertices[4].Position = SVector3f( 0.5, -0.5, -0.5);
    Mesh->Vertices[5].Position = SVector3f( 0.5,  0.5, -0.5);
{'fraction_non_alphanumeric': 0.2060032894736842, 'fraction_numerical': 0.06990131578947369, 'mean_word_length': 4.542141230068337, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6259595', 'n_tokens_mistral': 1076, 'n_tokens_neox': 1016, 'n_words': 163}