SoNormalBundle - Online Linux Manual PageSection : 3
Updated : Mon Jan 25 2021
Source : Version 3.1.3
Note : Coin

NAMESoNormalBundle − The SoNormalBundle class simplifies normal handling​.

SYNOPSIS
Inherits SoBundle​.

Public Member FunctionsSoNormalBundle (SoAction *action, SbBool forrendering)
~SoNormalBundle ()
SbBool shouldGenerate (int numneeded)
void initGenerator (int initnum=100)
void beginPolygon (void)
void polygonVertex (const SbVec3f &v)
void endPolygon (void)
void triangle (const SbVec3f &p1, const SbVec3f &p2, const SbVec3f &p3)
void generate (int startindex=0, SbBool addtostate=TRUE)
const SbVec3f * getGeneratedNormals (void) const
int getNumGeneratedNormals (void) const
void set (int32_t num, const SbVec3f *normals)
const SbVec3f & get (int index) const
void send (int index) const

Public AttributesSoNormalGenerator * generator

Additional Inherited Members

Detailed DescriptionThe SoNormalBundle class simplifies normal handling​. This class is currently not used in Coin but is provided for API compatibility​.

Constructor & Destructor Documentation

SoNormalBundle::SoNormalBundle (SoAction * action, SbBool forrendering)Constructor​.

SoNormalBundle::~SoNormalBundle ()Destructor​.

Member Function Documentation

SbBool SoNormalBundle::shouldGenerate (int numneeded)Returns FALSE if there are normals on the state​. Otherwise initGenerator() is called with numneeded as argument, and TRUE is returned​.

void SoNormalBundle::initGenerator (int initnum = 100)Initializes the normal generator​. initnum is a hint that should contain the approximate number of normals to be generated​.

void SoNormalBundle::beginPolygon (void)Start polygon specification​. Call polygonVertex() for each vertex in the polygon, and then endPolygon() to close the polygon​. See also polygonVertex(), endPolygon()

void SoNormalBundle::polygonVertex (const SbVec3f & v)Call for each vertex in a polygon​. See also beginPolygon(), endPolygon()

void SoNormalBundle::endPolygon (void)Call to close a polygon​. See also beginPolygon(), polygonVertex()

void SoNormalBundle::triangle (const SbVec3f & p1, const SbVec3f & p2, const SbVec3f & p3)Convenience method to specify a triangle​. p1, p2, and p3 are the triangles vertices​.

void SoNormalBundle::generate (int startindex = 0, SbBool addtostate = TRUE)Generate normals for the shape​. startindex should always be 0 (the SoNonIndexedShape::startIndex field is obsoleted)​. addtostate should be true if the generated normals should be pushed onto the current state​.

const SbVec3f * SoNormalBundle::getGeneratedNormals (void) constReturns the number of generated normals​.

int SoNormalBundle::getNumGeneratedNormals (void) constReturns a pointer to the generated normals​.

void SoNormalBundle::set (int32_t num, const SbVec3f * normals)Can be used by nodes that generate their own normals​. The state will be updated with the new normals, and the state will be popped again when the SoNormalBundle destructor is called​.

const SbVec3f & SoNormalBundle::get (int index) constReturns the index'th normal from the state​.

void SoNormalBundle::send (int index) constSend the index'th normal to OpenGL​.

AuthorGenerated automatically by Doxygen for Coin from the source code​.
0
Johanes Gumabo
Data Size   :   19,796 byte
man-SoNormalBundle.3coin3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 191,567
Visitor ID   :     :  
Visitor IP   :   18.116.24.238   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.