// get size of PolyPolygon. Control vectors are included in that ranges.
BASEGFX_DLLPUBLIC B3DRange getRange(const B3DPolyPolygon& rCandidate);
/** Create a unit 3D line polyPolygon which defines a cube.
*/
B3DPolyPolygon const & createUnitCubePolyPolygon();
/** Create a unit 3D fill polyPolygon which defines a cube.
*/
B3DPolyPolygon const & createUnitCubeFillPolyPolygon();
/** Create a 3D line polyPolygon from a B3DRange which defines a cube.
*/
BASEGFX_DLLPUBLIC B3DPolyPolygon createCubePolyPolygonFromB3DRange( const B3DRange& rRange);
/** Create a 3D fill polyPolygon from a B3DRange which defines a cube.
*/
BASEGFX_DLLPUBLIC B3DPolyPolygon createCubeFillPolyPolygonFromB3DRange( const B3DRange& rRange);
/** Create a unit 3D line polyPolygon which defines a sphere with the given count of hor and ver segments. Resultwillbecenteredat(0.0,0.0,0.0)andsized[-1.0..1.0]inalldimensions. IfnHorSeg==0and/ornVerSeg==0,adefaultwillbecalculatedtohaveastepatleasteach15degrees. WithVerStart,VerStopandhorrangeincartesianmaybespecifiedtocreateapartialsphereonly.
*/
B3DPolyPolygon 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 3D line polyPolygon from a B3DRange which defines a sphere with the given count of hor and ver segments. IfnHorSeg==0and/ornVerSeg==0,adefaultwillbecalculatedtohaveastepatleasteach15degrees. WithVerStart,VerStopandhorrangeincartesianmaybespecifiedtocreateapartialsphereonly.
*/
BASEGFX_DLLPUBLIC B3DPolyPolygon 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/replace normals for given 3d geometry with default normals from given center to outside. rCandidate:the3dgeometrytochange rCenter:thecenterofthe3dgeometry
*/
BASEGFX_DLLPUBLIC B3DPolyPolygon applyDefaultNormalsSphere( const B3DPolyPolygon& rCandidate, const B3DPoint& rCenter);
/** invert normals for given 3d geometry.
*/
BASEGFX_DLLPUBLIC B3DPolyPolygon invertNormals( const B3DPolyPolygon& rCandidate);
/** Create/replace texture coordinates for given 3d geometry with parallel projected one rRange:thefullrangeofthe3dgeometry IfbChangeX,xtexturecoordinatewillberecalculated. IfbChangeY,ytexturecoordinatewillberecalculated.
*/
BASEGFX_DLLPUBLIC B3DPolyPolygon applyDefaultTextureCoordinatesParallel( const B3DPolyPolygon& rCandidate, const B3DRange& rRange, bool bChangeX = true, bool bChangeY = true);
/** Create/replace texture coordinates for given 3d geometry with spherical one rCenter:thecentreoftheused3dgeometry IfbChangeX,xtexturecoordinatewillberecalculated. IfbChangeY,ytexturecoordinatewillberecalculated.
*/
BASEGFX_DLLPUBLIC B3DPolyPolygon applyDefaultTextureCoordinatesSphere( const B3DPolyPolygon& rCandidate, const B3DPoint& rCenter, bool bChangeX = true, bool bChangeY = true);
// isInside test for B3DPoint. On border is not inside. // It is assumed that the orientations of the given polygon are correct.
BASEGFX_DLLPUBLIC bool isInside(const B3DPolyPolygon& rCandidate, const B3DPoint& rPoint);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.