package tiny_appkits

  1. Overview
  2. Docs
Application engines from scratch: a spreadsheet, rich text, paint, draw, CAD, editors and more

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.3.6.tar.gz
md5=7c636383d146d30ac6f2fa234a6253c8
sha512=c79f3823c5f8f57e5038eb640d487c61168b84aa07c61999d6622ef9fd0c890e2b03b4c6a7cdbbe9352a49e25dda00ac7bb14693cee8e3d7beeed251351a2af0

doc/tiny_appkits.appkit_pushpull/Skp_model/index.html

Module Skp_modelSource

Sourcetype v3 = Vec3.t
Sourcetype edge = {
  1. a : int;
  2. b : int;
  3. soft : bool;
  4. curve : bool;
}
Sourcetype face = {
  1. id : int;
  2. outer : int list;
  3. holes : int list list;
}
Sourcetype t = {
  1. verts : (int * v3) list;
  2. edges : edge list;
  3. faces : face list;
  4. next : int;
}
Sourceval empty : t
Sourceval eps : float
Sourceval pos : t -> int -> v3
Sourceval face : t -> int -> face option
Sourceval loops : face -> int list list
Sourceval sides : int list -> (int * int) list
Sourceval normal : t -> face -> v3
Sourceval faces_on : t -> int -> int -> face list
Sourceval inside : t -> face -> v3 -> bool
Sourceval hit : t -> v3 -> v3 -> (float * face) option
Sourceval vertex_at : t -> v3 -> t * int
Sourceval add_edge : ?curve:bool -> t -> v3 -> v3 -> t
Sourceval add_polygon : ?curve:bool -> t -> v3 list -> t
Sourceval push_pull : t -> int -> float -> t
Sourceval move : t -> int list -> v3 -> t
Sourceval erase_edge : t -> int -> int -> t
Sourceval erase_face : t -> int -> t
Sourceval vertices_of : edges:(int * int) list -> faces:int list -> t -> int list