C# Class SampleCsCommands.SampleCsTwistedCube

A Rhino.NET plug-in can contain as many MRhinoCommand derived classes as it wants. DO NOT create an instance of this class (this is the responsibility of Rhino.NET.)
Inheritance: RMA.Rhino.MRhinoCommand
Mostra file Open project: mcneel/Rhino4Samples_DotNet

Public Methods

Method Description
CommandUUID ( ) : System.Guid

Rhino tracks commands by their unique ID. Every command must have a unique id. The Guid created by the project wizard is unique. You can create more Guids using the "Create Guid" tool in the Tools menu.

EnglishCommandName ( ) : string
RunCommand ( IRhinoCommandContext context ) : IRhinoCommand.result

This gets called when when the user runs this command.

Private Methods

Method Description
MakeTwistedCube ( ) : OnBrep

The one and only MakeTwistedCube

MakeTwistedCubeEdge ( OnBrep &brep, int vi0, int vi1, int c3i ) : void

MakeTwistedCubeEdge

MakeTwistedCubeEdges ( OnBrep &brep ) : void

MakeTwistedCubeEdges

MakeTwistedCubeFace ( OnBrep &brep, int si, int s_dir, int vSWi, int vSEi, int vNEi, int vNWi, int eSi, int eS_dir, int eEi, int eE_dir, int eNi, int eN_dir, int eWi, int eW_dir ) : void

MakeTwistedCubeFace

MakeTwistedCubeFaces ( OnBrep &brep ) : void

MakeTwistedCubeFaces

MakeTwistedCubeTrimmingLoop ( OnBrep &brep, OnBrepFace &face, int vSWi, int vSEi, int vNEi, int vNWi, int eSi, int eS_dir, int eEi, int eE_dir, int eNi, int eN_dir, int eWi, int eW_dir ) : int

MakeTwistedCubeTrimmingLoop

TwistedCubeEdgeCurve ( IOn3dPoint from, IOn3dPoint to ) : OnCurve

TwistedCubeEdgeCurve

TwistedCubeSideSurface ( IOn3dPoint SW, IOn3dPoint SE, IOn3dPoint NE, IOn3dPoint NW ) : OnSurface

TwistedCubeSideSurface

TwistedCubeTrimmingCurve ( IOnSurface s, int side ) : OnCurve

TwistedCubeTrimmingCurve

Method Details

CommandUUID() public method

Rhino tracks commands by their unique ID. Every command must have a unique id. The Guid created by the project wizard is unique. You can create more Guids using the "Create Guid" tool in the Tools menu.
public CommandUUID ( ) : System.Guid
return System.Guid

EnglishCommandName() public method

public EnglishCommandName ( ) : string
return string

RunCommand() public method

This gets called when when the user runs this command.
public RunCommand ( IRhinoCommandContext context ) : IRhinoCommand.result
context IRhinoCommandContext
return IRhinoCommand.result