Beispiel #1
0
    protected override void OnActivate()
    {
        StopTool();
        if (DetailEditor.instance.currentWorkplane == null)
        {
            return;
        }
        var feature = new ExtrusionFeature();

        feature.source = DetailEditor.instance.currentWorkplane;
        DetailEditor.instance.AddFeature(feature);
        DetailEditor.instance.ActivateFeature(feature);
        if (Vector3.Dot(Camera.main.transform.forward, feature.extrusionDir.Eval()) > 0f)
        {
            feature.extrude.value = -feature.extrude.value;
        }
    }
Beispiel #2
0
 public ExtrudedPointEntity(PointEntity e, ExtrusionFeature ex)
 {
     entity    = e;
     extrusion = ex;
 }
Beispiel #3
0
 public ExtrudedEntity(Entity e, ExtrusionFeature ex, long i)
 {
     entity    = e;
     extrusion = ex;
     index     = i;
 }