Пример #1
0
        public override void postprocess_target_objects()
        {
            double max_scene_dim = TargetObjects[0].SO.Mesh.CachedBounds.MaxDim / TargetObjects[0].sceneToObjUnitScale;
            double scene_length  = ToolDefaults.DefaultTargetEdgeLengthF(max_scene_dim);

            set_target_edge_length(scene_length);
            set_max_distance(1.0);
        }
Пример #2
0
        public override void postprocess_target_objects()
        {
            double max_scene_dim = 0;

            foreach (var target in TargetObjects)
            {
                max_scene_dim = Math.Max(max_scene_dim, target.SO.Mesh.CachedBounds.MaxDim / target.sceneToObjUnitScale);
            }
            double scene_length = ToolDefaults.DefaultTargetEdgeLengthF(max_scene_dim);

            set_target_edge_length(scene_length);
        }
Пример #3
0
        public override void postprocess_target_objects()
        {
            foreach (var target in TargetObjects)
            {
                MaxVertexCount   = Math.Max(MaxVertexCount, target.SO.Mesh.VertexCount);
                MaxTriangleCount = Math.Max(MaxTriangleCount, target.SO.Mesh.TriangleCount);
            }
            foreach (var op in Operators)
            {
                op.VertexCount   = MaxVertexCount / 2;
                op.TriangleCount = MaxTriangleCount / 2;
            }

            double max_scene_dim = 0;

            foreach (var target in TargetObjects)
            {
                max_scene_dim = Math.Max(max_scene_dim, target.SO.Mesh.CachedBounds.MaxDim / target.sceneToObjUnitScale);
            }
            double scene_length = 3 * ToolDefaults.DefaultTargetEdgeLengthF(max_scene_dim);

            set_min_edge_length(scene_length);
        }