Ejemplo n.º 1
0
int	get_args(t_obj *obj, t_pars *opt, int *y)
{
  char	*line;
  int	s;

  ++(*y);
  while (my_strcmp(opt->file[*y], "}") != 0)
    {
      line = opt->file[*y];
      s = 0;
      while (line[s] == ' ')
	++s;
      if (my_strncmp("Center = ", &line[s], 9) == 0)
	fill_center(obj, &line[s + 9]);
      else if (my_strncmp("Angle = ", &line[s], 8) == 0)
	fill_angle(obj, &line[s + 8]);
      else if (other_opt(&line[s], obj, opt->text) == -1)
	return (file_error(line, *y, -1));
       ++(*y);
    }
  return (0);
}
Ejemplo n.º 2
0
/*
    Splits a point buffer into individual path segments.
    Loads the result into the given path buffer.
*/
void Optimizer_Context::find_paths(double split_angle)
{
    fill_angle();
    path_split(split_angle);
    fill_cycle(split_angle);
}