Coin Logo Coin3D is Free Software,
published under the BSD 3-clause license.
https://bitbucket.org/Coin3D/
http://www.kongsberg.com/kogt/
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
SoPointCloud.cpp File Reference
#include <config.h>
#include "SoPointCloud.h"
#include "SmHQSphere.h"
#include <Inventor/misc/SoState.h>
#include <Inventor/bundles/SoTextureCoordinateBundle.h>
#include <Inventor/SoPrimitiveVertex.h>
#include <Inventor/elements/SoGLCacheContextElement.h>
#include <Inventor/C/glue/gl.h>
#include <Inventor/actions/SoGLRenderAction.h>
#include <GL/gl.h>
#include <Inventor/nodes/SoVertexProperty.h>
#include <Inventor/actions/SoGetPrimitiveCountAction.h>
#include <Inventor/elements/SoGLCoordinateElement.h>
#include <Inventor/elements/SoNormalBindingElement.h>
#include <Inventor/elements/SoMaterialBindingElement.h>
#include <Inventor/bundles/SoMaterialBundle.h>
#include <Inventor/caches/SoNormalCache.h>
#include <Inventor/details/SoPointDetail.h>
#include <Inventor/elements/SoModelMatrixElement.h>
#include <Inventor/elements/SoViewVolumeElement.h>
#include <Inventor/elements/SoCacheElement.h>
#include <Inventor/SbPlane.h>
#include <Inventor/SbBSPTree.h>

Macros

#define PRIVATE(obj)   obj->pimpl
 

Functions

 SO_NODE_SOURCE (SoPointCloud)
 
static void generate_cube_vertices (SbVec3f *varray, const SbVec3f &center, const float w, const float h, const float d)
 
static void render_cube (const SbVec3f &center, const float width, const float height, const float depth)
 

Variables

static int cube_vindices []
 
static float cube_normals []
 

Macro Definition Documentation

◆ PRIVATE

#define PRIVATE (   obj)    obj->pimpl

Function Documentation

◆ generate_cube_vertices()

static void generate_cube_vertices ( SbVec3f varray,
const SbVec3f center,
const float  w,
const float  h,
const float  d 
)
static

◆ render_cube()

static void render_cube ( const SbVec3f center,
const float  width,
const float  height,
const float  depth 
)
static

◆ SO_NODE_SOURCE()

SO_NODE_SOURCE ( SoPointCloud  )

Variable Documentation

◆ cube_normals

float cube_normals[]
static
Initial value:
=
{
0.0f, 0.0f, 1.0f,
0.0f, 0.0f, -1.0f,
-1.0f, 0.0f, 0.0f,
1.0f, 0.0f, 0.0f,
0.0f, 1.0f, 0.0f,
0.0f, -1.0f, 0.0f
}

◆ cube_vindices

int cube_vindices[]
static
Initial value:
=
{
0, 1, 3, 2,
5, 4, 6, 7,
1, 5, 7, 3,
4, 0, 2, 6,
4, 5, 1, 0,
2, 3, 7, 6
}