Revision: 76314 http://sourceforge.net/p/brlcad/code/76314 Author: starseeker Date: 2020-07-10 13:54:53 +0000 (Fri, 10 Jul 2020) Log Message: ----------- Don't document it - this is not a primitive we want to encourage use of - but support writing out a cline with make for testing purposes.
Modified Paths: -------------- brlcad/trunk/src/libged/make.c Modified: brlcad/trunk/src/libged/make.c =================================================================== --- brlcad/trunk/src/libged/make.c 2020-07-10 13:33:54 UTC (rev 76313) +++ brlcad/trunk/src/libged/make.c 2020-07-10 13:54:53 UTC (rev 76314) @@ -71,6 +71,7 @@ struct rt_superell_internal *superell_ip; struct rt_metaball_internal *metaball_ip; struct rt_pnts_internal *pnts_ip; + struct rt_cline_internal *cline_ip; static const char *usage = "-h | -t | -o origin -s sf name <arb8|arb7|arb6|arb5|arb4|arbn|ars|bot|datum|ehy|ell|ell1|epa|eto|extrude|grip|half|hyp|nmg|part|pipe|pnts|rcc|rec|rhc|rpc|rpp|sketch|sph|tec|tgc|tor|trc>"; @@ -786,6 +787,20 @@ superell_ip->e = 1.0; fprintf(stdout, "superell being made with %f and %f\n", superell_ip->n, superell_ip->e); + } else if (BU_STR_EQUAL(argv[bu_optind+1], "cline")) { + + internal.idb_major_type = DB5_MAJORTYPE_BRLCAD; + internal.idb_type = ID_CLINE; + internal.idb_meth = &OBJ[ID_CLINE]; + BU_ALLOC(internal.idb_ptr, struct rt_cline_internal); + cline_ip = (struct rt_cline_internal *)internal.idb_ptr; + cline_ip->magic = RT_CLINE_INTERNAL_MAGIC; + VSET(cline_ip->v, origin[X], origin[Y], origin[Z]); + VSET(cline_ip->h, 0.0, 0.0, scale); + cline_ip->radius = .5 * scale; + cline_ip->thickness = .1 * scale; + fprintf(stdout, "cline being made with radius %f and thickness %f\n", cline_ip->radius, cline_ip->thickness); + } else if (BU_STR_EQUAL(argv[bu_optind+1], "hf")) { bu_vls_printf(gedp->ged_result_str, "make: the height field is deprecated and not supported by this command.\nUse the dsp primitive.\n"); return GED_ERROR; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits