Search Results for

    Show / Hide Table of Contents

    Class InitRandomWithHoles

    Standard initialization method that generates a connected system of contracted particles with random holes. See GenerateRandomWithHoles(int, float, Chirality, Compass).

    Inheritance
    object
    InitializationMethod
    InitRandomWithHoles
    Namespace: AS2
    Assembly: .dll
    Syntax
    public class InitRandomWithHoles : InitializationMethod

    Constructors

    | Edit this page View Source

    InitRandomWithHoles(ParticleSystem)

    Declaration
    public InitRandomWithHoles(ParticleSystem system)
    Parameters
    Type Name Description
    ParticleSystem system

    Methods

    | Edit this page View Source

    Generate(int, float, Chirality, Compass)

    Declaration
    public void Generate(int numParticles = 50, float holeProb = 0.3, Initialization.Chirality chirality = Chirality.CounterClockwise, Initialization.Compass compassDir = Compass.E)
    Parameters
    Type Name Description
    int numParticles
    float holeProb
    Initialization.Chirality chirality
    Initialization.Compass compassDir
    • Edit this page
    • View Source
    In this article
    Back to top AmoebotSim 2.0 Documentation v1.11
    Copyright © 2025 AmoebotSim 2.0 Authors
    Generated by DocFX