Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Problem with ScreenSpaceLines3D

Problem with ScreenSpaceLines3D

Scheduled Pinned Locked Moved WPF
helpcsharpwpfquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alaajabre
    wrote on last edited by
    #1

    Hi i was working with ScreenSpaceLines3D (Part of 3DTools for WPF) and to draw this object i must to add it to Viewport3D.Children which is Visual3DCollection when i add the object to that collection then remove it it throw a 'NullReferenceException' the exception was thrown by a method inside the class which is UpdateTransform() in OnRendering eventHandler cold someone help in this ? and the other problem that i can not replace ScreenSpaceLines3D with any thing i must use it   Sample of what happens : <pre> Viewport3D viewport;             ScreenSpaceLines3D screenSpaceLines3D;             public void AddLine()             {                   screenSpaceLines3D = new ScreenSpaceLines3D();                   screenSpaceLines3D.Color = Colors.Blue;                   screenSpaceLines3D.Points.Add(new Point3D(0, 0, 0));                   screenSpaceLines3D.Points.Add(new Point3D(10, 10, 10));                   screenSpaceLines3D.Thickness = 1;                   viewport = new Viewport3D();                   viewport.Children.Add(screenSpaceLines3D);             }             public void RemoveLine()             {                   if (screenSpaceLines3D != null)                   {                         viewport.Children.Remove(screenSpaceLines3D);                   }             }// The exception appears her </pre>

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups