From 401ea56e3674c38820c0f8affd3e95233077dc71 Mon Sep 17 00:00:00 2001 From: fraguada Date: Mon, 2 Dec 2024 15:18:27 +0100 Subject: [PATCH] a bit more sync --- src/dotnet/opennurbs/opennurbs_viewport.cs | 10 ++++++++++ src/dotnet/rhino/rhinosdkobject.cs | 4 ++-- src/librhino3dm_native/on_math.cpp | 3 +-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/dotnet/opennurbs/opennurbs_viewport.cs b/src/dotnet/opennurbs/opennurbs_viewport.cs index 871344c3..69bd9d90 100644 --- a/src/dotnet/opennurbs/opennurbs_viewport.cs +++ b/src/dotnet/opennurbs/opennurbs_viewport.cs @@ -233,6 +233,16 @@ public bool ChangeToParallelProjection(bool symmetricFrustum) return UnsafeNativeMethods.ON_Viewport_ChangeToParallelProjection(ptr_this, symmetricFrustum); } + /// + /// When a viewport is set to Parallel Reflected projection, the geometry on the ceiling is shown as if it is mirrored to the floor below. + /// + /// true if successful + public bool ChangeToParallelReflectedProjection() + { + IntPtr ptr_this = NonConstPointer(); + return UnsafeNativeMethods.ON_Viewport_ChangeToParallelReflectedProjection(ptr_this); + } + /// /// Use this function to change projections of valid viewports /// from parallel to perspective. It will make common additional diff --git a/src/dotnet/rhino/rhinosdkobject.cs b/src/dotnet/rhino/rhinosdkobject.cs index 2943a0b2..69c25061 100644 --- a/src/dotnet/rhino/rhinosdkobject.cs +++ b/src/dotnet/rhino/rhinosdkobject.cs @@ -2270,7 +2270,7 @@ public bool HasCustomRenderMeshes(MeshType mt, ViewportInfo vp, ref RenderMeshPr uint f = (uint)flags; - f |= 8 /*RenderMeshProvider.Flags.IsDocumentObject*/; + f |= 8 /*RenderMeshProvider.Flags.IsDocumentObject*/; IntPtr ptrViewport = (vp != null) ? vp.ConstPointer() : IntPtr.Zero; @@ -2307,7 +2307,7 @@ public RenderMeshes RenderMeshes(MeshType mt, ViewportInfo vp, List