Class OctahedronSphereCreator

    • Constructor Detail

      • OctahedronSphereCreator

        public OctahedronSphereCreator()
    • Method Detail

      • addVertex

        protected int addVertex​(com.badlogic.gdx.math.Vector3 p,
                                float radius)
        Adds a vertex and its UV mapping.
        Parameters:
        p - The point.
        radius - The radius.
        Returns:
      • addUV

        protected void addUV​(java.util.Set<java.lang.Integer> seam)
        Implements the spherical UV mapping
      • create

        public OctahedronSphereCreator create​(float radius,
                                              int divisions,
                                              boolean flipNormals,
                                              boolean hardEdges)