This is the discussion forum for Helix Toolkit.
For bugs and new features, use the issue tracker located at GitHub.
Also try the chat room!
0

Layers or Groups in Exporter

Anonymous 11 years ago 0
This discussion was imported from CodePlex

Capn_K wrote at 2013-07-30 03:59:

I'm looking at implementing an Exporter that can write 'named layers' (aka 'groups' ) that are defined when the model is created.

At the moment, I'm not entirely sure where to start.

Our code is creating objects using ExtrudedVisual3d and QuadVisual3d which end up as direct children of the viewport.

I was thinking I could create a nested structure of ModelVisual3d elements under the viewport, each of which contains a set of children which make up that layer. But this wouldn't know about the 'name' of that layer.

Similarly, when exporting the decendant exporter class is not called until the base class has traversed down to the Geometry3dModel, at which point it's unaware of the ModelVisual3d which it belongs to.

The obj exporter is the only exporter that I can see which exports groups, but it creates a new group for each GeometryModel3d, which is not what I want in this case.

Should I be looking at Dependency Properties/Attached Properties to achieve this? But where to put them?

Clues? Suggestions?

objo wrote at 2013-09-08 08:48:

Yes, attached properties can be used to set the name of the groups. We could add this property into the library and implement support for it in the exporters. I understand the obj exporter also need some refactoring related to the grouping.

https://helixtoolkit.codeplex.com/workitem/9994
0

make Point Visual3D clickable?

Anonymous 11 years ago 0
This discussion was imported from CodePlex

bennasi wrote at 2012-11-16 11:12:

Is it possible to make a point Visual 3D clickable? If yes how?

Thanks


objo wrote at 2012-11-19 17:00:

No, the PointsVisual3D class is not based on the UIElement3D, so there will be no mouse events. Try changing the base class to ModelUIElement3D!


bennasi wrote at 2012-11-23 16:28:

Could you give me a small example of how I could make a clickable point then? Am really new to wpf 3D.

If not a good reference to how to start with wpf 3d would be much appreciated.

I am trying to make a grid of points (of which the positions I have) and lines connecting them.

0

Consistency with layout vectors

Anonymous 11 years ago 0
This discussion was imported from CodePlex

murray_b wrote at 2012-04-17 04:51:

Hi Objo

I have been using TextCreator and GridLinesVisual3D and noticed a little inconsistency

The layout of these both use two vectors to define the layout.

Ie  GridlinesVisual3D uses : Normal, LengthDirection

TextCreator uses: Over, Up

Essentially the same thing

If you use the same vectors with these they are drawn at 90 degrees to each other.

Do you think they should orientate the same?

Just a thought

Regards

Murray


objo wrote at 2012-04-17 08:02:

Good point, I want the api to be as consistent as possible. I will see if I can improve it. I guess you want to define the normal of the text face? 


murray_b wrote at 2012-04-17 08:08:

Yes that sounds good.   Normal, HeighDirection ? maybe, would seem consistent.

What ever you think is best. 

I just noticed this because i was using a grid and text together and found it strange that I had to use two different sets of vectors to get them to line up.

Thanks

Murray

0

Cutting a mesh with a plane of limited size?

Mehran Maghoumi 10 years ago 0
I know that MeshGeometryHelper has the Cut method that can cut a mesh against a plane.
Obviously, that function uses the traditional math definition of a plane (a plane which has an infinite size).
Is there an easy way to adapt that method to perform a cut using a plane of limited size? In other words, let's say we have the point and the normal of the plane as well as its width and height. How could we cut only a part of the mesh that intersects with this "limited" plane?
Is there a straightforward way of doing this?
0

cross section view

Anonymous 11 years ago 0
This discussion was imported from CodePlex

muthulakshmic wrote at 2013-08-13 13:29:

Could you please help us to writecode to create cross section view in helix 3D, Thanks.

objo wrote at 2013-08-13 14:59:

0

How can I animate process 1 circle transform to other and create a shape along the way?

Anonymous 11 years ago 0
This discussion was imported from CodePlex

chinh_nguyen wrote at 2013-01-04 14:08:

I have 2 circle with different radius and direction, and I need to animate the process 1 circle transform to other and create a shape along the way (like extrude surface but have scale and rotate as well). Anyone has idea or suggestion code to achieve this? Thank in advance

Best regards,

Chinh Nguyen

0

Incomplete file (file length does not match header)

Anonymous 11 years ago 0
This discussion was imported from CodePlex

xgd224743 wrote at 2013-11-13 06:49:

import .3ds ,throw Incomplete file (file length does not match header)
why

tks
0

AnaglyphView3D ModelUpDirection

Anonymous 11 years ago 0
This discussion was imported from CodePlex

thecake wrote at 2012-10-12 13:46:

The HelixViewport3D has a ModelUpDirection property, which affects the turning directions of the Camera - the anaglyph view does not have this property.

How can I change the ModelUpDirection of the anaglyph view, that it corresponds with the Cameras UpDirection?

thanks!


objo wrote at 2012-10-14 16:00:

It should be possible to bind the ModelUpDirection of the CameraController inside the AnaglyphView. I added the issue http://helixtoolkit.codeplex.com/workitem/9970

0

If anyone is interested in solving my problem for $

Anonymous 11 years ago 0
This discussion was imported from CodePlex

BogusException wrote at 2014-07-22 19:57:

Experts,

I have tried over the past few weeks to get the Flights Demo (in VB) debugged, but even after writing to @objo privately and other posts here, I have no responses. That's fine... I understand it is only important to me.

So I went to Freelancers.com and posted a project there, with a $50 USD bounty. I don't want anyone here to think I am asking for their time without compensation. Volunteering and helping for free only go so far-I get it. So I am willing to get the help on your terms, by showing my appreciation with cash.

If you are interested, you can see the project here on freelancer.com...

I will choose a winning bidder in the next few hours.

Thanks, everyone!

pat
:)

MODERATORS: This is not a generic solicitation or advertisement. It is a problem specific to my implementing this CodePlex project (Helix 3D Toolkit), and is represented as such on both sites. In addition, this is the first time I've let the community know about opportunities to help for $.

objo wrote at 2014-08-08 12:46:

No problem, I hope you found someone that could solve the problem! I am interested to know how it went - was the problem solved? Sorry, I have very limited free time and cannot involve myself in all discussions at the moment.
0

Calling overridable method in the constructor ?

Anonymous 11 years ago 0
This discussion was imported from CodePlex

SagarDabas wrote at 2013-03-31 08:05:

I am doing little changes in QuadVisual3D by overriding Tessellate. AreaChart is the subclass of QuadVisual3D.
public static readonly DependencyProperty PointsProperty = 
DependencyProperty.Register("PointsList", typeof(Point3DCollection), 
typeof(AreaChart), new UIPropertyMetadata(null,
 GeometryChanged));


 public Point3DCollection PointsList
    {
        get
        { return (Point3DCollection)this.GetValue(PointsProperty); }

        set
        { this.SetValue(PointsProperty, value); }
    }
I am not able to instantiate PointsList property using this code :
<local:AreaChart PointsList="0,0,8 0,-10,11" Extrusion="2" />
I am getting Count as 0 (or null Exception if I don't give a default value in the PropertyMetadata).

It looks like Tessellate method is invoked in the constructor of MeshElement3D class.
Can you please suggest what should I do ?

SagarDabas wrote at 2013-03-31 09:35:

Ok, Got it. I used a temporary list to do the changes rather than directly modifying the property.
And initialized property with default values which is changed when the AreaChart constructor is invoked or it's fields are initialized.

Thanks for the awesome library.