Add group details gen attr

This commit is contained in:
2022-03-15 17:34:50 +08:00
parent a25c8dd789
commit d7386bce68
4 changed files with 92 additions and 42 deletions
+16 -1
View File
@@ -1,7 +1,7 @@
import { Individual } from "./Individual";
import { CtrlObject } from "./CtrlObject";
import type { Behavior } from "./Behavior";
import type { Model } from "./Model";
import type { Label } from "./Label";
enum GenMod {
Point = "p",
@@ -23,6 +23,21 @@ class Group extends CtrlObject {
*/
public genMethod: GenMod = GenMod.Point;
/**
* 生成位置坐标
*/
public genPoint: number[] = [0, 0, 0];
/**
* 生成范围
*/
public genRange?: CtrlObject | Label;
/**
* 生成个数
*/
public genCount?: number = 0;
/**
* 创建个体
* @param count 创建数量