I do not seem to find any good resources on how to organize entities from an ecs into a scene graph / hierarchical structure e.g. for a 3D editor.
Im talking about something like:
-root
-player
-left-arm
-right-arm
-tree
-branch
Could you give me a design example or maybe link some resource that explains how I could achieve this?
Related
I'm developing an Orchard Core site and would like to place the shape templates into some sort of folder structure, if possible?
See example from tutorial:
So would it be possible to place the ColorField shape templates into a ColorField folder and the PersonPart shape templates into a PersonPart folder?
Not a direct answer to your question, but I was having problems getting Razor pages in a ~/Views/Shared folder to display as a shape.
JTKech replied here to me https://github.com/OrchardCMS/OrchardCore/issues/6376?notification_referrer_id=MDE4Ok5vdGlmaWNhdGlvblRocmVhZDkyNDcxMjQ2NDo3MjcwNjE%3D#issuecomment-640995088. Basically, OC looks at certain folders ("Views", "Views/Items", "Views/Parts", "Views/Fields", "Views/Elements") to display shapes.
That being said, there was a way in O1 to change what folders were searched, and I believe there is such a way in OC but haven't been able to find it.
In the end, you may want to place Color Field and PersonPart into ~/Views/Parts until you find a better solution to suit your needs.
Another option is to create a Theme and place those files within a similar structure there. I tend to do this with front-end views, keeping the Admin/Edit pages in my module. But there's nothing to stop you from doing them either way. Good luck.
Is it possible in OpenSCAD to access faces, normals, edges and connectivity of STL geometry?
I'd like to modify the STL geometry by iterating over each face and modifying it based on some local criteria.
If this is not possible in OpenSCAD, recommendations for an open tool or library are welcomed.
Thanks.
OpenSCAD does not support access to the geometry in that way yet. I would suggest a library like JSSTL to access the facets, although that will depend on the language you would like to implement your app in.
for my next project I'm looking for maps, that contains only frontiers of countrys, lakes, hills ans rivers.
Can I get such kind of maps with the OpenStreet-API?
best regards
The "OpenStreetMap API" provides map data, not map images. So, for the imagery you want, you either need to find a source that renders the style you want, or render your own.
I don't know of any services that provide exactly the render that you're looking for. However, it should be very easy to render your own tiles that do this - if you install TileMill and follow through the tutorial, you will find it very easy to delete layers from the default style until no names are included in the style.
Note that if you're planning on running a web service, you'll also need to serve your special new map tiles to your users.
I'm trying to build a simple content management system based on the Zend Framework 2. The problem is that I don't know how should the folders structure be like.
Until now I have to solutions in mind:
A. Building a general "Admin" module that has multiple controllers like Login Controller, Pages Controller, Posts Controller, each of this controller with his own actions.
B. Building an module for each component, like: Pages Module that has an adminController an an frontendController.
I'm sure that none of the above solution is the corect one, but couldn't find any solid solution or books to provide one. I've taken a look at gotCMS but noticed that this one i.e, saves all the data like layout views in the database, and this is not a solution.
Though it's a very first alpha solution, I work on ensemble which is what I'd rather call a content management framework.
Ensemble's admin runs on ZfcAdmin. So you can drop in a Blog module which just has a admin controller under ZfcAdmin's route. But you can also manage pages (like texts) with a navigational page structure. All content parts (text, blog, etc) are separate modules.
So I'd suggest you take a look at the sample application and you can check out our blog as well, which just hooks in into ensemble. I know currently the documentation is scarce, but if we reach kinda beta stability we will focus more on docs.
The main benefits for "your system B" is you can drop in modules when needed. They all provide their own config, controllers, models and views. It's easy to install them from a developers perspective (load in composer, enable in application config) and you can easily override any view with your own ones.
TL;DR: choose structure B and have a look at Ensemble.
/edit: seeing you comment on Sam's answer: yes you have to do that. In ensemble, you specify a route config for the frontend and create your admin routes as child routes of ZfcAdmin. For both the frontend as the backend you have separate controllers.
There is no right or wrong when it comes to building something new. Personally I'd go with B. I wouldn't even name the Controllers like you did (I'd break them down a lot more, like NewsAddController, NewsEditController, NewsDetailsController, etc...). Then I'd have an AdminModule that would simply display a new Layout with a specific "AdminNavigation". This AdminNavigation can be filled via the other Modules (i.e. NewsModule would inject it's own administrative Routes into the AdminNavigation via module.config.php)
I'm looking to build an interactive web-based org chart for a large organization. I somewhat like the interface at ancestry.com where you can hover over people and pan/zoom around and click on different nodes to make them the root.
Ideally, I'd like it if people could belong to multiple organizational entities like committees, working groups, etc. In other words the API should support graphs in general, not just trees.
I'd like to be able to visually explode each organizational substructure into substituents by clicking on it, with a nice animation of the employees ballooning or spilling out so you can really interactively drill down through the organization.
I found http://code.google.com/apis/visualization/documentation/gallery/orgchart.html but it looks a bit rudimentary.
I know there are desktop tools like OrgPlus and Visio that can build static charts but I'm really looking for a free, web-based API with open standards-based output like SVG or HTML5 Canvas elements rather than Flash or some proprietary output. Something I can embed into a custom web application and style myself. Something interactive.
Check my solution on github: OrgChart.svg This is a modern full SVG orgchart with support of custom styling, tip-over / stacking possibility in the best known form. I would be very happy if it helps someone. It is based on snap.svg.
I ended up using the SpaceTree API from the Javascript InfoVis Toolkit to build my org chart:
http://philogb.github.com/jit/static/v20/Docs/files/Visualizations/Spacetree-js.html
I've had a go at building this in d3.js. It was originally built for data pulled from Yammer but now it will work with any csv - like this one.
Here's the repo and here's a demo. You will need to know a little html/javascript to customise it for your application.
There is this one for asp.net but I have only ever added it to my bookmarks so I can't vouch for how standards compliant it is:
http://www.orgchartcomponent.com/
Something you should also consider when you are looking in to this is your charting requirements. Many org charts only support a single top node. If you wanted to map a family tree for example then this might not be the case.