<commit_before>package org.glob3.mobile.generated; 
//
//  GEOGeometry.cpp
//  G3MiOSSDK
//
//  Created by <NAME> on 11/30/12.
//
//

//
//  GEOGeometry.hpp
//  G3MiOSSDK
//
//  Created by <NAME> on 11/30/12.
//
//



//class Geodetic2D;
//class Mesh;
//class Color;
//class GEOSymbol;
//class GEOFeature;

public abstract class GEOGeometry extends GEOObject
{
  private java.util.ArrayList<Mesh> _meshes;

  private java.util.ArrayList<Mesh> createMeshes(G3MRenderContext rc, GEOSymbolizer symbolizer)
  {
  
    java.util.ArrayList<GEOSymbol> symbols = createSymbols(rc, symbolizer);
    if (symbols == null)
    {
      return null;
    }
  
    java.util.ArrayList<Mesh> meshes = new java.util.ArrayList<Mesh>();
  
    final int symbolsSize = symbols.size();
    for (int i = 0; i < symbolsSize; i++)
    {
      GEOSymbol symbol = symbols.get(i);
  
      Mesh mesh = symbol.createMesh(rc);
      if (mesh != null)
      {
        meshes.add(mesh);
      }
      if (symbol != null)
         symbol.dispose();
    }
    symbols = null;
  
    return meshes;
  }

  private GEOFeature _feature;

  protected java.util.ArrayList<Mesh> getMeshes(G3MRenderContext rc, GEOSymbolizer symbolizer)
  {
    if (_meshes == null)
    {
      _meshes = createMeshes(rc, symbolizer);
    }
    return _meshes;
  }

  protected abstract java.util.ArrayList<GEOSymbol> createSymbols(G3MRenderContext rc, GEOSymbolizer symbolizer);

//  Mesh* create2DBoundaryMesh(std::vector<Geodetic2D*>* coordinates,
//                             Color* color,
//                             float lineWidth,
//                             const G3MRenderContext* rc);

  public GEOGeometry()
  {
     _meshes = null;
     _feature = null;

  }

  public final void render(G3MRenderContext rc, GLState parentState, GEOSymbolizer symbolizer)
  {
  //  Mesh* mesh = getMesh(rc, symbolizer);
  
    java.util.ArrayList<Mesh> meshes = getMeshes(rc, symbolizer);
  
    if (meshes != null)
    {
  
      final Frustum frustum = rc.getCurrentCamera().getFrustumInModelCoordinates();
  
      final int meshesCount = _meshes.size();
      for (int i = 0; i < meshesCount; i++)
      {
<<<<<<< HEAD
        GLState state = new GLState(parentState);
        state.disableDepthTest();
        //state.setPolygonOffsetFactor(1.0);
        //state.setPolygonOffsetUnits(1.0);
        mesh.render(rc, state);
=======
        Mesh mesh = meshes.get(0);
        if (mesh != null)
        {
          final Extent extent = mesh.getExtent();
  
          if (extent.touches(frustum))
          {
            GLState state = new GLState(parentState);
            state.disableDepthTest();
            mesh.render(rc, state);
          }
        }
>>>>>>> origin/webgl-port
      }
    }
  }

  public void dispose()
  {
    if (_meshes != null)
    {
      final int meshesCount = _meshes.size();
      for (int i = 0; i < meshesCount; i++)<commit_msg>Generated<commit_after>package org.glob3.mobile.generated; 
//
//  GEOGeometry.cpp
//  G3MiOSSDK
//
//  Created by <NAME> on 11/30/12.
//
//

//
//  GEOGeometry.hpp
//  G3MiOSSDK
//
//  Created by <NAME> on 11/30/12.
//
//



//class Geodetic2D;
//class Mesh;
//class Color;
//class GEOSymbol;
//class GEOFeature;

public abstract class GEOGeometry extends GEOObject
{
  private java.util.ArrayList<Mesh> _meshes;

  private java.util.ArrayList<Mesh> createMeshes(G3MRenderContext rc, GEOSymbolizer symbolizer)
  {
  
    java.util.ArrayList<GEOSymbol> symbols = createSymbols(rc, symbolizer);
    if (symbols == null)
    {
      return null;
    }
  
    java.util.ArrayList<Mesh> meshes = new java.util.ArrayList<Mesh>();
  
    final int symbolsSize = symbols.size();
    for (int i = 0; i < symbolsSize; i++)
    {
      GEOSymbol symbol = symbols.get(i);
  
      Mesh mesh = symbol.createMesh(rc);
      if (mesh != null)
      {
        meshes.add(mesh);
      }
      if (symbol != null)
         symbol.dispose();
    }
    symbols = null;
  
    return meshes;
  }

  private GEOFeature _feature;

  protected java.util.ArrayList<Mesh> getMeshes(G3MRenderContext rc, GEOSymbolizer symbolizer)
  {
    if (_meshes == null)
    {
      _meshes = createMeshes(rc, symbolizer);
    }
    return _meshes;
  }

  protected abstract java.util.ArrayList<GEOSymbol> createSymbols(G3MRenderContext rc, GEOSymbolizer symbolizer);

//  Mesh* create2DBoundaryMesh(std::vector<Geodetic2D*>* coordinates,
//                             Color* color,
//                             float lineWidth,
//                             const G3MRenderContext* rc);

  public GEOGeometry()
  {
     _meshes = null;
     _feature = null;

  }

  public final void render(G3MRenderContext rc, GLState parentState, GEOSymbolizer symbolizer)
  {
  //  Mesh* mesh = getMesh(rc, symbolizer);
  
    java.util.ArrayList<Mesh> meshes = getMeshes(rc, symbolizer);
  
    if (meshes != null)
    {
  
      final Frustum frustum = rc.getCurrentCamera().getFrustumInModelCoordinates();
  
      final int meshesCount = _meshes.size();
      for (int i = 0; i < meshesCount; i++)
      {
        Mesh mesh = meshes.get(0);
        if (mesh != null)
        {
          final Extent extent = mesh.getExtent();
  
          if (extent.touches(frustum))
          {
            GLState state = new GLState(parentState);
            state.disableDepthTest();
            mesh.render(rc, state);
          }
        }
      }
    }
  }

  public void dispose()
  {
    if (_meshes != null)
    {
      final int meshesCount = _meshes.size();
      for (int i = 0; i < meshesCount; i++)
{'fraction_non_alphanumeric': 0.12428160919540229, 'fraction_numerical': 0.010416666666666666, 'mean_word_length': 2.185926773455378, 'pattern_counts': {'":': 0, '<': 38, '<?xml version=': 0, '>': 32, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3316402', 'n_tokens_mistral': 1915, 'n_tokens_neox': 1841, 'n_words': 398}