This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ovd::VoronoiDiagram* vd = new ovd::VoronoiDiagram(1,100); | |
ovd::Point p0(-0.2567719874411157,-0.4983049800651602); | |
ovd::Point p1(0.12205285479992212,-0.640371712930281); | |
ovd::Point p2(-0.25972854724944455,-0.5143879072702902); | |
ovd::Point p3(-0.34168692840153536,-0.6418861147966213); | |
ovd::Point p4(-0.5288215108461576,0.18480346369654843); | |
ovd::Point p5(-0.35263585687204546,-0.50735692278175); | |
ovd::Point p6(-0.4821854389417177,0.46463421861462373); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ovd::VoronoiDiagram* vd = new ovd::VoronoiDiagram(1,100); | |
ovd::Point p0(-0.2567719874411157,-0.4983049800651602); | |
ovd::Point p1(0.12205285479992212,-0.640371712930281); | |
ovd::Point p2(-0.25972854724944455,-0.5143879072702902); | |
ovd::Point p3(-0.34168692840153536,-0.6418861147966213); | |
ovd::Point p4(-0.5288215108461576,0.18480346369654843); | |
ovd::Point p5(-0.35263585687204546,-0.50735692278175); | |
ovd::Point p6(-0.4821854389417177,0.46463421861462373); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12.02-335-gaa6b701 | |
find_seed_vertex on f=0 | |
Face 0: 0(2)-f0-7(2)-f0-1(0)-f0-2(0)-f0-8(2)-f0- | |
0 h= -2.72236 dist=3apex=(0.159074, -0.227556) | |
7 queued (h=-1.31573 ) | |
8 queued (h=-1.09637 ) | |
9 queued (h=-0.842597 ) | |
7 marked IN (in_circle) ( -1.31573 ) | |
8 marked IN (in_circle) ( -1.09637 ) | |
9 marked IN (in_circle) ( -0.842597 ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
#include <iostream> | |
#include <openvoronoi/medial_axis_filter.hpp> | |
#include <openvoronoi/medial_axis_walk.hpp> | |
#include <openvoronoi/voronoidiagram.hpp> | |
#include <openvoronoi/polygon_interior_filter.hpp> | |
#include <openvoronoi/utility/vd2svg.hpp> | |
#include <openvoronoi/version.hpp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WARNING t_filter() results in empty solution set!! | |
solution edge: (0.102197, -1.68708)[1](t=1.03479) - (0.0976054, -1.71425)[1](t=1.06218) | |
solution edge: 58[1]{1} -[4]- 59[1]{0} | |
s1= LineSite: (0.389014, -0.692829) - (0.386091, -0.691995)(k=-1) | |
s2= PointSite: (0.159513, -0.653879)(k=1) | |
s3= LineSite: (-0.162121, -0.673332) - (0.42533, -0.6914) | |
Running solvers again: | |
The failing 6 solutions are: | |
(0.12838, -0.650985) t=0.031267 k3=1 e_err=0.0614641 | |
min<t<max=0 s3.in_region=1 region-t=0.492875 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scala.tools.nsc.interactive.{Global, RefinedBuildManager} | |
import scala.tools.nsc.Settings | |
import scala.tools.nsc.reporters.StoreReporter | |
import scala.tools.nsc.io._ | |
import scala.tools.nsc.util._ | |
import scala.tools.nsc.interactive.Response | |
import scala.tools.nsc.util.{Position, OffsetPosition} | |
import scala.reflect.generic.Trees | |
val settings = new Settings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object Interpreter { | |
def main(args:Array[String]) = { | |
(new SimpleParser).parseString("2*3.2 + 3*(36.07/4 - 10)").println | |
} | |
import scala.util.parsing.combinator._ | |
class SimpleParser extends JavaTokenParsers { | |
def expr: Parser[Double] = ( | |
term~"+"~expr ^^ { case a~"+"~b => a + b } | |
| term~"-"~expr ^^ { case a~"-"~b => a - b } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package socco | |
abstract class SoccoTree(val children:List[SoccoTree]) extends Seq[SoccoTree] with SoccoNode[SoccoTree] { | |
def apply(n:Int) = children(n) | |
def iterator = children.iterator | |
def length = children.length | |
// def add(t:SoccoTree)(implicit builder:SoccoTreeBuilder[B]) = builder.build(this.asInstanceOf[B], children :+ t) | |
} | |
trait SoccoNode[B <: SoccoTree] { | |
def soccoCompanion:SoccoTreeCompanion[B] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object Main extends App { | |
object Conf extends ScallopConf(arguments) { | |
val apples:SOption[Int] = opt[Int]("apples") | |
val bananas = opt[Int]("bananas") | |
val file = trailArg[String] | |
verify | |
} | |
Conf.apples.get | |
Conf.bananas.option // not sure about option retreiving syntax | |
// maybe I should copy the code for SOption from stdlib Option? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.rogach.scallop._ | |
import org.scalatest.FunSuite | |
import org.scalatest.matchers.ShouldMatchers | |
/** | |
* Created with IntelliJ IDEA. | |
* User: Alexy | |
* Date: 4/6/12 | |
* Time: 10:34 AM |
OlderNewer