private static GameObject CreateRenderable(Table table, IRenderable renderable)
        {
            var tb  = TableBehavior;
            var rog = renderable.GetRenderObjects(table, Origin.Original, false);

            return(VpxConverter.ConvertRenderObjects(renderable, rog, GetOrCreateParent(tb, rog), tb));
        }
Example #2
0
        private GameObject CreateRenderable(IRenderable renderable)
        {
            var rog = renderable.GetRenderObjects(_table.Table, Origin.Original, false);

            VpxConverter.ConvertRenderObjects(renderable, rog, GetOrCreateParent(_table, rog), _table, out var obj);
            return(obj);
        }
        private static GameObject CreateRenderable(Table table, IRenderable renderable)
        {
            var tb  = TableAuthoring;
            var rog = renderable.GetRenderObjects(table, Origin.Original, false);

            VpxConverter.ConvertRenderObjects(renderable, rog, GetOrCreateParent(tb, rog), tb, out var obj);
            return(obj);
        }
Example #4
0
        protected static void AssertObjMesh(Table table, ObjFile obj, IRenderable renderable, Func <IRenderable, Mesh, string> getName = null, double threshold = FloatThresholdComparer.Threshold)
        {
            var targetMeshes = renderable.GetRenderObjects(table).RenderObjects.Select(ro => ro.Mesh);

            foreach (var mesh in targetMeshes)
            {
                AssertObjMesh(obj, mesh, getName?.Invoke(renderable, mesh), threshold);
            }
        }