LibreOffice Module basegfx (master) 1
Namespaces | Macros | Functions
b3dpolypolygontools.cxx File Reference
#include <basegfx/polygon/b3dpolypolygontools.hxx>
#include <basegfx/range/b3drange.hxx>
#include <basegfx/polygon/b3dpolypolygon.hxx>
#include <basegfx/polygon/b3dpolygon.hxx>
#include <basegfx/polygon/b3dpolygontools.hxx>
#include <basegfx/matrix/b3dhommatrix.hxx>
#include <basegfx/numeric/ftools.hxx>
#include <com/sun/star/drawing/DoubleSequence.hpp>
#include <com/sun/star/drawing/PolyPolygonShape3D.hpp>
Include dependency graph for b3dpolypolygontools.cxx:

Go to the source code of this file.

Namespaces

namespace  basegfx
 
namespace  basegfx::utils
 

Macros

#define nMinSegments   sal_uInt32(1)
 
#define nMaxSegments   sal_uInt32(512)
 

Functions

B3DRange basegfx::utils::getRange (const B3DPolyPolygon &rCandidate)
 
B3DPolyPolygon const & basegfx::utils::createUnitCubePolyPolygon ()
 Create a unit 3D line polyPolygon which defines a cube. More...
 
B3DPolyPolygon const & basegfx::utils::createUnitCubeFillPolyPolygon ()
 Create a unit 3D fill polyPolygon which defines a cube. More...
 
B3DPolyPolygon basegfx::utils::createCubePolyPolygonFromB3DRange (const B3DRange &rRange)
 Create a 3D line polyPolygon from a B3DRange which defines a cube. More...
 
B3DPolyPolygon basegfx::utils::createCubeFillPolyPolygonFromB3DRange (const B3DRange &rRange)
 Create a 3D fill polyPolygon from a B3DRange which defines a cube. More...
 
static B3DPoint basegfx::utils::getPointFromCartesian (double fHor, double fVer)
 
B3DPolyPolygon basegfx::utils::createUnitSpherePolyPolygon (sal_uInt32 nHorSeg, sal_uInt32 nVerSeg, double fVerStart=M_PI_2, double fVerStop=-M_PI_2, double fHorStart=0.0, double fHorStop=2 *M_PI)
 Create a unit 3D line polyPolygon which defines a sphere with the given count of hor and ver segments. More...
 
B3DPolyPolygon basegfx::utils::createSpherePolyPolygonFromB3DRange (const B3DRange &rRange, sal_uInt32 nHorSeg, sal_uInt32 nVerSeg, double fVerStart=M_PI_2, double fVerStop=-M_PI_2, double fHorStart=0.0, double fHorStop=2 *M_PI)
 Create a 3D line polyPolygon from a B3DRange which defines a sphere with the given count of hor and ver segments. More...
 
B3DPolyPolygon basegfx::utils::createUnitSphereFillPolyPolygon (sal_uInt32 nHorSeg, sal_uInt32 nVerSeg, bool bNormals=false, double fVerStart=M_PI_2, double fVerStop=-M_PI_2, double fHorStart=0.0, double fHorStop=2 *M_PI)
 same as createUnitSpherePolyPolygon, but creates filled polygons (closed and oriented) There is one extra, the bool bNormals defines if normals will be set, default is false More...
 
B3DPolyPolygon basegfx::utils::createSphereFillPolyPolygonFromB3DRange (const B3DRange &rRange, sal_uInt32 nHorSeg, sal_uInt32 nVerSeg, bool bNormals=false, double fVerStart=M_PI_2, double fVerStop=-M_PI_2, double fHorStart=0.0, double fHorStop=2 *M_PI)
 same as createSpherePolyPolygonFromB3DRange, but creates filled polygons (closed and oriented) There is one extra, the bool bNormals defines if normals will be set, default is false More...
 
B3DPolyPolygon basegfx::utils::applyDefaultNormalsSphere (const B3DPolyPolygon &rCandidate, const B3DPoint &rCenter)
 Create/replace normals for given 3d geometry with default normals from given center to outside. More...
 
B3DPolyPolygon basegfx::utils::invertNormals (const B3DPolyPolygon &rCandidate)
 invert normals for given 3d geometry. More...
 
B3DPolyPolygon basegfx::utils::applyDefaultTextureCoordinatesParallel (const B3DPolyPolygon &rCandidate, const B3DRange &rRange, bool bChangeX=true, bool bChangeY=true)
 Create/replace texture coordinates for given 3d geometry with parallel projected one rRange: the full range of the 3d geometry If bChangeX, x texture coordinate will be recalculated. More...
 
B3DPolyPolygon basegfx::utils::applyDefaultTextureCoordinatesSphere (const B3DPolyPolygon &rCandidate, const B3DPoint &rCenter, bool bChangeX=true, bool bChangeY=true)
 Create/replace texture coordinates for given 3d geometry with spherical one rCenter: the centre of the used 3d geometry If bChangeX, x texture coordinate will be recalculated. More...
 
bool basegfx::utils::isInside (const B3DPolyPolygon &rCandidate, const B3DPoint &rPoint)
 
B3DPolyPolygon basegfx::utils::UnoPolyPolygonShape3DToB3DPolyPolygon (const css::drawing::PolyPolygonShape3D &rPolyPolygonShape3DSource)
 converters for css::drawing::PolyPolygonShape3D More...
 
void basegfx::utils::B3DPolyPolygonToUnoPolyPolygonShape3D (const B3DPolyPolygon &rPolyPolygonSource, css::drawing::PolyPolygonShape3D &rPolyPolygonShape3DRetval)
 

Macro Definition Documentation

◆ nMaxSegments

#define nMaxSegments   sal_uInt32(512)

Definition at line 32 of file b3dpolypolygontools.cxx.

◆ nMinSegments

#define nMinSegments   sal_uInt32(1)

Definition at line 31 of file b3dpolypolygontools.cxx.