Class CreateCmd

java.lang.Object
com.j3d.engine.interact.cmd.base.Command
com.j3d.engine.interact.cmd.commands.create.CreateCmd

public class CreateCmd extends Command
A command to create various geometric objects in the scene.

This command allows the user to specify a type of geometric object (e.g., cube, triangle, point, curve) to be created and added to the current scene. It leverages the Creator utility class to generate the geometry.

The created object is automatically added to the currently active or a new usable Layer and given a unique name. For solid objects like cubes, it also calls Thing.solidify().

Typical Usage:
     create cube
     create c
     create triangle
     create tri
     create point
     create p
     create curve
     create bezier
Author:
Lehlogonolo Poole
See Also:
  • Field Details

    • argSet

      private static final ArgSet argSet
  • Constructor Details

    • CreateCmd

      public CreateCmd()
  • Method Details

    • run

      public void run(@NotNull Invoker invoker, SafeJLabel logLabel, String aliasUsed, @NotNull Object[] args, @NotNull ArrayList<TaggedArgValue<?>> taggedArgs)
      Description copied from class: Command
      The method to be overridden by subclasses to implement command functionality.
      Overrides:
      run in class Command
      Parameters:
      invoker - The invoker of this command
      logLabel - The JLabel to display log messages.
      aliasUsed - The alias of the command that was used to invoke it.
      args - The arguments passed to the command.
      taggedArgs - Tagged arguments passed to the command.
    • usableThing

      public Thing usableThing(String name)