<commit_before>var debug = require('../utils/debug');
var geometries = require('../core/geometry').geometries;
var registerComponent = require('../core/component').registerComponent;
var THREE = require('../lib/three');

var dummyGeometry = new THREE.Geometry();
var warn = debug('components:geometry:warn');

/**
 * Geometry component. Combined with material component to make a mesh in 3D object.
 * Extended with registered geometries.
 */
module.exports.Component = registerComponent('geometry', {
  schema: {
    buffer: { default: true },
    mergeTo: { type: 'selector' },
    primitive: { default: '' },
    skipCache: { default: false }
  },

  init: function () {
    this.geometry = null;
  },
<commit_msg>Exposes geometry primitives in oneOf (#1501)<commit_after>var debug = require('../utils/debug');
var geometries = require('../core/geometry').geometries;
var geometryNames = require('../core/geometry').geometryNames;
var registerComponent = require('../core/component').registerComponent;
var THREE = require('../lib/three');

var dummyGeometry = new THREE.Geometry();
var warn = debug('components:geometry:warn');

/**
 * Geometry component. Combined with material component to make a mesh in 3D object.
 * Extended with registered geometries.
 */
module.exports.Component = registerComponent('geometry', {
  schema: {
    buffer: { default: true },
    mergeTo: { type: 'selector' },
    primitive: { default: '', oneOf: geometryNames },
    skipCache: { default: false }
  },

  init: function () {
    this.geometry = null;
  },

{'fraction_non_alphanumeric': 0.15483870967741936, 'fraction_numerical': 0.003870967741935484, 'mean_word_length': 4.152823920265781, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6116186', 'n_tokens_mistral': 442, 'n_tokens_neox': 416, 'n_words': 118}